Vidyalelo
Computer Science · Q514

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 514

Q514

Which of the following statements declares a one-dimensional Character array named item that consists of five elements?

A.
char item[0 to 4] = "";
B.
char item[0 to 5] = "";
C.
char item[4] = "";
D.
char item[5] = "";
Answer
E.
string item[5] = ' ';

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board