InterviewSolution
Saved Bookmarks
| 1. |
Which of the following declaration is illegal?(a) char *str = “Best C programming classes by Sanfoundry”;(b) char str[] = “Best C programming classes by Sanfoundry”;(c) char str[20] = “Best C programming classes by Sanfoundry”;(d) char[] str = “Best C programming classes by Sanfoundry”;This question was addressed to me by my college professor while I was bunking the class.The doubt is from Declarations topic in division Data Types, Operators and Expressions in C of C |
|
Answer» Right choice is (d) CHAR[] str = “BEST C programming classes by Sanfoundry”; |
|