Is there a way to color just one element in an array?
Say, I have a 2D array like this:
main ()
{
int x,y;
char arr[3][3];
for (x=0;x<3;x++)
for (y=0;y<3;y++)
arr[x][y]='a';
arr[1][1]='b';
for (x=0;x<3;x++)
for (y=0;y<3;y++)
printf("%c", arr[x][y]);
}
How to apply a color to only character 'b' located at arr [1][1]?