Question
Easy

Each string literal is automatically added with a ........... terminating character.

1
"10"
2
"11"
3
"#"
4
#0'
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter:
Topic:
Correct Answer
Option A
Explanation

The correct option is (1): The fundamental characteristic of a string literal in languages like C and C++ is that it is automatically terminated by a null character, often written as the escape sequence $\\text{'\\textbackslash} 0'$ or simply represented by the decimal value 0. While the literal text provided in Option (1) is inconsistent with the standard C/C++ notation for the null character, we must understand that this option refers…Read More