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(*)());
Yes
No
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.

Chitturi bhavani said:   9 years ago
I didn't understand, please explain in detail.

Vamshi krishna said:   1 decade ago
f is a pointer to which function? What is the name of the function?

Prudhvi said:   1 decade ago
Can we declare without function names?

Yogesh said:   1 decade ago
I'm not able understand, please explain.

Post your comments here:

Your comments will be displayed after verification.