i was reading some topics when i found this code and the first comment says
stored in a read-only memory area
What does that mean ?how do i know if the string or variable is read-only ?
char *p = "wikipedia"; // stored in a read-only memory area valid C, deprecated in C++98/C++03, ill-formed as of C++11
p[0] = 'W'; // undefined behavior