Google News
logo
CPP - Quiz(MCQ)
What is Character-Array in C++?
A)
array of characters
B)
array of alphabets
C)
array of well-defined characters
D)
array of characters terminated by \0

Correct Answer :   array of characters


Explanation : In C programming, the collection of characters is stored in the form of arrays. This is also supported in C++ programming. Hence it's called C-strings. C-strings are arrays of type char terminated with null character, that is, \0 (ASCII value of null character is 0).

Advertisement