GATE 1998
November 11, 2023Database-Management-System
November 11, 2023Pointers
Question 6 |
Which of the following declares ‘pf’ as a pointer to a function, which returns an integer quantity and requires two integer arguments ?
int *pf(int, int); | |
int (*pf)(int, int); | |
(int *) pf(int, int); | |
int ( int *pf(int, int)); |
Question 6 Explanation:
int (*pf)(int, int) , Here ‘pf’ declares as a pointer to a function, which returns an integer quantity and requires two integer arguments
Correct Answer: B
Question 6 Explanation:
int (*pf)(int, int) , Here ‘pf’ declares as a pointer to a function, which returns an integer quantity and requires two integer arguments