Question discussion

What does the following statement declare ?int(*f)(int*);

2881Medium DSSSB TGT Computer Science 0 replies 1 views
0

What does the following statement declare ?

int(*f)(int*);

  • AInteger pointer f
  • BA function pointer f which takes integer argument
  • CA pointer to a function that takes integer pointer as an argument
  • DA function that takes integer pointer as an argument
Correct answer: C

Explanation

f is a pointer to a function that takes an int* argument and returns int.

Discussion 0

Nobody has replied yet. Start the discussion!