Answer :

In c there is a header file called conio.h which defines function textattr(int x). 
here x is color code which takes value from 0 to ...(havnt tested more than 256). 
1->blue 
2->cant remember 
4->red(most probably) 
7-> white. 
eg:
#include<stdio.h> 
#include<conio.h> 
void main() 

textattr(5); 
printf("Can u see red Text ? "); 
getch(); 


OR

TRY THIS SIMPLE CODE
................................................................................................................................

#include<stdio.h> // including header file
#include<conio.h> // this is used to get colored text.
void main() // as it return nothing ( in this program )
{
textcolor(GREEN); // this function will allow you to get colored text
cprintf(" HELLO WORLD "); // cprintf only allows you to get color
}

Other Questions