In C, can I say a white space in a string has a NULL type, or something else?
In C, which character represents the termination of a string?
The null character (ASCII value 0, '\0' as a character literal) terminates a string in C. This character is not usually regarded as a whitespace character.
The space in the middle of this string for example: "Hello world" is the character with ASCII value 32. This is not the same as NULL or \0.
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