The code above is not giving any errors or warnings when I compile and run it in CodeBlocks 20.03.Code:int myArray[3] = {0};
myArray[111] = 22;
printf("\n%d\n", myArray[111]);
The code echos the value of "22" to the command line.
Should I be concerned that running code like this could overwrite memory it shouldn't?
Do you know why this code is not presenting any errors or warning?
Thanks