Home » C Programming » Variables » Question
  1. Which of the following declaration is illegal?
    1. char[] s = “Best C programming classes by Interview Mania”;
    2. char s[10] = “Best C programming classes by Interview Mania”;
    3. char s[] = “Best C programming classes by Interview Mania”;
    4. char *s = “Best C programming classes by Interview Mania”;
    5. None of these
Correct Option: A

char[] s is a declaration in Java, but not in C.



Your comments will be displayed only after manual approval.