Append to the end of a string literal constant - a null character

Q.  C++: What does C++ append to the end of a string literal constant?
- Published on 24 Jun 15

a. a space
b. a number sign (#)
c. an asterisk (*)
d. a null character

ANSWER: a null character
 
a null character string is a char array with a null value (0x00) after the last valid character in the string.

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)