Q. Which of the following is the correct syntax for defining a pointer to an integer in C++?
β
Correct Answer: (B)
int *ptr;
Explanation: In C++, an asterisk (*) is used to define a pointer to an integer, like 'int *ptr;'.