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 Join the discussion Report an error