Q. A string is terminated by ___

  • (A) Newline ('\n')
  • (B) Null ('\0')
  • (C) Whitespace
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) Null ('\0')
Explanation: In C programming language, a string is a sequence of characters terminated with a null character \0.
Explanation by: Chandani
In C programming language, a string is a sequence of characters terminated with a null character \0.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
323
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Chandani
Publisher
πŸ“ˆ
93%
Success Rate