Which of the following declaration is illegal?
A.char *str = “Best C programming classes by AllIndiaExams”;
B.char str[] = “Best C programming classes by AllIndiaExams”;
C.char str[20] = “Best C programming classes by AllIndiaExams”;
D.char[] str = “Best C programming classes by AllIndiaExams”;
Answer:D
Which of the following declaration is illegal?
A.char *str = “Best C programming classes by AllIndiaExams”; B.char str[] = “Best C programming classes by AllIndiaExams”; C.char str[20] = “Best C programming classes by AllIndiaExams”; D.char[] str = “Best C programming classes by AllIndiaExams”;