Examveda

Which of the following is true regarding the declaration of a string in C++ using the char array?

A. It can be initialized using the assignment operator

B. It cannot be modified after initialization

C. It requires a null character at the end

D. It automatically allocates memory for the null character

Answer: Option C


Join The Discussion

Related Questions on Arrays and Strings in C plus plus