In the string "...\0..." the '\0' is treated as a backslash character, followed by a 0 (i.e., "...\\0..."), rather than a null character.
Code that should print the string "hi", but prints "hi\0bye" instead
Log in to post a comment.
Code that should print the string "hi", but prints "hi\0bye" instead