C Programming - Complicated Declarations - Discussion
Discussion Forum : Complicated Declarations - Yes / No Questions (Q.No. 4)
4.
Is the following declaration correct?
void(*f)(int, void(*)());
void(*f)(int, void(*)());
Answer: Option
Explanation:
f is a pointer to a function which returns nothing and receives as its parameter an integer and a pointer to a function which receives nothing and returns nothing.
Discussion:
5 comments Page 1 of 1.
Pranali said:
8 years ago
@ALL.
Firstly u have to read that sentence.
i.e., 'f' is a pointer which stores the address of an unnamed function, which having 2 parameters 1st is an integer and 2nd is a function which accepts nothing and returns void pointer and the whole function returns nothing.
Firstly u have to read that sentence.
i.e., 'f' is a pointer which stores the address of an unnamed function, which having 2 parameters 1st is an integer and 2nd is a function which accepts nothing and returns void pointer and the whole function returns nothing.
Vamshi krishna said:
1 decade ago
f is a pointer to which function? What is the name of the function?
Chitturi bhavani said:
9 years ago
I didn't understand, please explain in detail.
Yogesh said:
1 decade ago
I'm not able understand, please explain.
Prudhvi said:
1 decade ago
Can we declare without function names?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers