acturally, In C++, the string literal like "hello,world" is really a constant, and in most cases, s will convert to a pointer to the first char 'h',but the standard doesn't require the converted result to be const.The standard also says, modify the string literal is undefined, that means anything could happen, including nothing wrong.
You shouldn't be trying to "get this to run successfully". It's not standard C++, or even C, for that matter. It's not supposed to work. Stop trying to do things that are dangerous and non-standard, people that work with you in the future are going to hate you.