Hey friends , Is there any way to change textcolor in C?
I am not able to find any method...

There is no portable way of changing text color in C. It is highly a compiler dependent or OS dependent feature. If you are using Turbo compiler you can use the console I/O functions cprintf() and cputs() for color output.

#include <conio.h>
      int main()
      {
          textcolor(BLUE);
          cprintf("I'm blue.");
          return 0 ;
      }

Thanks for ur help..
I had found one .....
setcolor(RED);
outtextxy(x,y, text);

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.