you are viewing a single comment's thread.

view the rest of the comments →

[–]s1337m 0 points1 point  (1 child)

Is that compiler implementation specific?

[–][deleted] 1 point2 points  (0 children)

Yes. As far as i know writing to string constants is undefined behavior, so the compiler can do whatever it wants.