Start learning →

How many bytes does a 5-character null-terminated string occupy?

A6 bytes
B5 bytes
C4 bytes
D7 bytes
Answer & Solution
Correct answer: A. 6 bytes
Null termination requires an extra byte to store the zero byte marker.
Practise this question with Quill — ICSE Class 10 →

Keep practising String Handling and Wrapper Classes

Browse all String Handling and Wrapper Classes questions for ICSE Class 10, or explore more Computer Applications topics.

Start a String Handling and Wrapper Classes lesson →