4 ms·
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.
by brown-dragon 11y ago
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.
- JoshTriplett 11y agoIf you added another %c, it would print the NUL to stdout; it doesn't terminate anything.
- brown-dragon 11y agoYou're right. My mistake.