Complicated Declarations on C related Questions and Answers


Question :   What do the following declaration signify?
int *f();

1. f is a pointer variable of function type.
2. f is a function returning pointer to an int.
3. f is a function pointer.
4. f is a simple declaration of pointer variable.
Answer :   2 - f is a function returning pointer to an int.  

* 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