hello, i have here is a simple program that has initial string values. the user must first pick a location of the color and after that, change it to whatever he inputs then displays the new values
You are probably accessing an undefined bit of memory. You have a few problems with your code. Firstly, why don't you just use a one dimensional array? Apart from that, you have defined it as a three dimensional array (notice the pointer in the declaration), which means that your program is overwriting memory pointed to randomly by that pointer.