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