Pointers and Arrays on C related Questions and Answers


Question :   Which of the following is a correct syntax to pass a Function Pointer as an argument?
1. void pass(int (*fptr)(int, float, char)){}
2. void pass(*fptr(int, float, char)){}
3. void pass(int (*fptr)){}
4. void pass(*fptr){}
Answer :   1 - void pass(int (*fptr)(int, float, char)){}  

* 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