-
What does the following C-statement declare?
int (*f) int*);
-
- A function that takes an integer pointer as argument and returns an integer
- A function that takes as argument and returns an integer pointer
- A pointer to a function that takes an integer pointer as argument and returns an integer
- A function that takes an integer pointer as argument and returns a function pointer
- A function that takes an integer pointer as argument and returns an integer
Correct Option: C
Syntax to declare pointer to a function => datatype (*pointer_variable)(list of arguments)
To make a pointer to a function => pointer_variable = function_name
Note : don't use parenthesis of the function.
To call (invoke) the function => pointer_variable (list of arguments)