Vidyalelo
C Programming · Q273

C Fundamentals

Programming · C Programming · question 273

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";
Answer

Answer: Option D

Solution

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