Question discussion

Which of the following is a valid declaration of a pointer to a function that takes no arguments and returns nothing (void)?

353Medium DSSSB TGT Computer Science 0 replies
Which of the following is a valid declaration of a pointer to a function that takes no arguments and returns nothing (void)?
  • Avoid f(*ptr)();
  • Bvoid (*ptr)();
  • Cvoid *ptr();
  • D(void)*ptr();
Correct answer: B

Discussion 0

Nobody has replied yet. Start the discussion!