Asked by Ashley Minaya on May 23, 2024
Verified
In C, '\n' is the sentinel marking the end of the string.
Sentinel
A special value used in programming to indicate the end of a data set or to signal when a particular condition has been met.
'\n'
Represents a newline character in many programming languages, used to move the cursor to the beginning of the next line of text.
- Acquire knowledge about the character used to terminate a string in C, and differentiate it from the newline and NULL characters.
Verified Answer
DW
David wilsonMay 26, 2024
Final Answer :
False
Explanation :
In C, the null character '\0' marks the end of a string, not '\n'.
Learning Objectives
- Acquire knowledge about the character used to terminate a string in C, and differentiate it from the newline and NULL characters.