Multiple Choice
Which of the following correctly declares name to be a character array and stores "William" in it?
A) char name[6] = "William";
B) char name[7] = "William";
C) char name[8] = "William";
D) char name[8] = 'William';
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q16: What is the output of the following
Q17: In C++, the null character is represented
Q18: For a list of length n, the
Q19: Which of the following correctly declares and
Q20: What is the output of the following
Q22: The _ of an array is the
Q23: Consider the following statement: double alpha[10][5];.The number
Q24: Consider the following declaration: char str[15];.Which of
Q25: In row order form, the _.<br>A) first
Q26: A collection of a fixed number of