Vidyalelo
C++ Programming · Q126

Classes and Objects in C++

Programming · C++ Programming · question 126

Q126

What will be the output of the following C++ code? #include using namespace std; int main() int x = 9; int* p = &x; cout << sizeof(p); return 0;

A.
4
B.
2
C.
Depends on compiler
Answer
D.
8

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board