Q. Which of the following correctly initializes a C++ pointer?
β
Correct Answer: (B)
int *ptr = &x;
Explanation: In C++, a pointer is declared using an asterisk (*), and it must be initialized with the address of a variable.