textbackground function is used to change of current background color in text mode. See available colors.
Declaration : void textbackground(int color);
Declaration : void textbackground(int color);
C programming code for textbackground
#include<stdio.h> #include<conio.h> main() { textbackground(RED); cprintf("C program to change background color."); getch(); return 0; }
Output:
No comments:
Post a Comment