Read a word and print how many characters it has (no spaces).
String length is how many visible characters sit before the terminator. For the word Kodin that number is 5, not 6, and not the 64-byte size of the buffer.
input
walk to \0
output
Each step highlights the matching C line. Program output appears only when a line that prints actually runs.
Five questions. Pick one answer each, then Check answers. The correct choice turns green.
1. Input Kodin prints:
Five letters.
2. %63s is used to:
Leave room for \0.
3. You could replace strlen with:
Manual walk.
4. sizeof(s) on char s[64] is:
Array size vs string length.
5. Spaces in the input with %s:
%s stops at whitespace.