Structures, Unions, Enums on C related Questions and Answers


Question :   What is the correct syntax to declare a function foo() which receives an array of structure in function?
1. void foo(struct *var);
2. void foo(struct *var[]);
3. void foo(struct var);
4. none of the mentioned
Answer :   1 - void foo(struct *var);  

* 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