Sail E0 Webinar
Question
Which of the following declaration is illegal?
Options:
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: Option A


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



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers