Q. Which of the following correctly declares a pointer in C++?
β
Correct Answer: (B)
int *ptr;
Explanation: In C++, a pointer is declared using the '*' symbol, as in 'int *ptr;'.