s points to a constant string literal in the current code (which is in practice
just a pointer in some read-only memory). The next line s[2] = c; either
crashes or just gets completely removed by the compiler as it attempts to
write to read-only memory.
s
points to a constant string literal in the current code (which is in practice just a pointer in some read-only memory). The next lines[2] = c;
either crashes or just gets completely removed by the compiler as it attempts to write to read-only memory.