Q. Which of these is used to terminate a string in C?

  • (A) \n
  • (B) \0
  • (C) EOF
  • (D) /0
πŸ’¬ Discuss
βœ… Correct Answer: (B) \0
Explanation: C strings are null-terminated using '\0'.
Explanation by: Mr. Dubey
C strings are null-terminated using '\0'.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
60
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate