Thank you both for this informative lesson.
Type: Posts; User: megaptera
Thank you both for this informative lesson.
Yes, this is what I was after. The compiler complains when const is used, and if it's not used then the program gets compiled but then crashes. This is what I wanted to see.
Thank you Sebastiani...
Hi,
Could someone show me a simple example of an attempt to change the protected strings that are pointed to from the following array:
const char *a[2] = { "string1", "string2" };
I would...