Pointers and Arrays on C related Questions and Answers


Question :   Which of the following declaration are illegal?
1. int a[][] = {{1, 2, 3}, {2, 3, 4, 5}};
2. int *a[] = {{1, 2, 3}, {2, 3, 4, 5}};
3. int a[4][4] = {{1, 2, 3}, {2, 3, 4, 5}};
4. none of the mentioned
Answer :   1 - int a[][] = {{1, 2, 3}, {2, 3, 4, 5}};  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter