Q. Which of the following is the correct way to declare a pointer in C++?
β
Correct Answer: (A)
int* ptr;
Explanation: In C++, to declare a pointer, the correct syntax is 'type* pointer_name'.