Where are string literals stored, and can I modify them?
Now strPtr and strArray are considered to be string literals. No, they aren’t. String literals are the things you see in your code. For example, the “Hello”. strPtr is a pointer to the literal (which is now compiled in the executable). Note that it should be const char *; you cannot legally remove the const … Read more