Q. Which of the following is the correct way to define a function pointer in C++?
β
Correct Answer: (A)
int (*ptr)(int, int);
Explanation: The correct way to define a function pointer is 'int (*ptr)(int, int);'.