Change the output's text colour in C

Hi friends, today I am going to share a funny code with you, which will change the colour of the text of out of your C console proram.
 here's the code is. :


#include<stdio.h>
#include<conio.h>
int main()
{
   clrscr();
   textcolor(8);
   cprintf("Hello world");
   getch();
   return 0;
}


You can change the value of  "textcolor(n);" function.  here "n" may be any interger value.
Try it and have fun..

Comments

Popular posts from this blog

Components of C language

Decision making using if statement

How to make payment for final certificate, migration, provisional for the students of last semester of ptu?