Q273
Which of the following declaration is illegal?
A.
char *str = "The quick brown fox jumps over the lazy dog";
B.
char str[] = "The quick brown fox jumps over the lazy dog";
C.
char str[20] = "The quick brown fox jumps over the lazy dog";
D.
char[] str = "The quick brown fox jumps over the lazy dog";
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board