Re:C Puzzles
by brown-dragon on Tuesday June 23, 2015 @01:16AM
(#9762755)
Good catch! And even if we do add another "%c" to fix it, I don't know why we would need to null-terminate a null-terminated string.
[ Parent
| on HN ]
Re:C Puzzles
by JoshTriplett on Tuesday June 23, 2015 @02:09AM
(#9762887)
If you added another %c, it would print the NUL to stdout; it doesn't terminate anything.
Re:C Puzzles
by brown-dragon on Wednesday June 24, 2015 @04:43AM
(#9770385)
You're right. My mistake.