Q. What is the output of the following code snippet? int x = 10; int *ptr = &x; cout << ptr;
β
Correct Answer: (B)
Address of x
Explanation: The pointer 'ptr' holds the address of x, so 'cout << ptr' prints the address of x.