Home Modern Forums ISRO

What does the following C-statement declare?
int (*f) (int*);
(A) A function that takes an integer pointer as argument and returns an integer
(B) A function that takes an integer as argument and returns an integer pointer
(C) A pointer to a function that takes an integer pointer as argument and returns an integer
(D) A function that takes an integer pointer as argument and returns a function pointer

Reply To:

What does the following C-statement declare?
int (*f) (int*);
(A) A function that takes an integer pointer as argument and returns an integer
(B) A function that takes an integer as argument and returns an integer pointer
(C) A pointer to a function that takes an integer pointer as argument and returns an integer
(D) A function that takes an integer pointer as argument and returns a function pointer

Up
0
Down
::

nan