Consider this definition:
char *pmessage = "now is the time";
As I see it, pmessage will point to a contiguous area in the memory containing these characters and a '\0'
at the end. So I derive from this that I can use pointer arithmetic to access an individual character in this string as long as I'm in the limits of this area.
So why they say (K&R) that modifying an individual character is undefined?
Moreover, why when I run the following code, I get a "Segmentation Fault"?
*(pmessage + 1) = 'K';