Text color in C programming

Write a program to Text color in C programming and change the Background color of console output in C and CPP

Setbkcolor function in c

#include<stdio.h>

#include<graphics.h>
#include<conio.h>
main()
{
int gd = DETECT, gm, drawing_color;
char a[100];

initgraph(&gd,&gm,“C:\\TC\\BGI”);

drawing_color = getcolor();
setcolor(RED);
setbkcolor(10);

sprintf(a,“Current drawing color is RED “);
outtextxy( 10, 10, a );

getch();
closegraph();
return 0;
}

Colored output in C

Text color in C programming
Text color in C programming

END

C program to draw a square using graphics (clickHere)

Background color of console output in C and CPP (clickHere)

Note:- Maybe sometime above code doesn’t get user-friendly output, in codeblock ‘or’ any other EDITOR, All of C & C++ program tested in DOS compiler Turbo C.

Also Read

Types of functions in C    Read Here

I hope you will understand better if you study at M.U, in the exam of M.U you know how important this “Background color of console output in C and Text color in C programming” . So please don’t forget to give your valuable feedback. Go in the comment section and Give us some feedback about it. Background color of console output in C and cpp and Text color in C programming or My website.

Our team check your every Comment per day Because your one feedback helps us in growing Thesmolt

I request you if you have any doubt or question regarding our site, then please don’t hesitate. We always waiting for your Suggestion.

Setfillstyle in C

Note:- If you want to Download This article’s in PDF form, then simply go (Top or Bottom of) Right corner and click on the PRINT icon, and it’s saved as a PDF of Text color in C programming

 

For further questions, you can contact us Via mail [email protected]  otherwise, Our Help Page and Contact us Page, which is included below. I hope I’ll able to say all the possible ways to reach us. Or Download My Android Application Below Download Button.

thesmolt App

Best Regards Background color of console output in C and Text color in C programming, Kindly we request to you after Installing This Application, Please Don’t forget to give your feedback.

Note:- In this App, you can read also in Offline mode, When you Open a Post and After save (Right Corner) it.

Cheers Thesmolt

 

 

Leave a Reply

x