Consider this line of text:
First line of text.
If a character array string
is used to load the first TEN characters in the array it will output as:
First lin'\0'
First
contains 5 letters, lin
contains 3 letters. Where are the other two characters being used?
Is \0
considered two characters?
Or is the space between the words considered a character, thus '\0` is one character?
Yes, space is a character. In ASCII encoding it has code number 32.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With