V
Q. What is the output of the following code snippet? int x = 10; int *ptr = &x; cout << ptr;
The pointer 'ptr' holds the address of x, so 'cout << ptr' prints the address of x.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. Which of the following is CPP style type-casting?
Q. Which of the following operators cannot be overloaded?
Q. What is the output of the following code snippet? int x = 10; int y = 0; cout << (x || y);
Q. What is the result of the following C++ program?
Q. Which of the following functions must use reference?
Q. Which of the following statements is correct about the constructors and destructors?
Q. Which of the following gets called when an object goes out of scope?
Discusssion
Login to discuss.