Vidyalelo
C++ Programming · Q142

Classes and Objects in C++

Programming · C++ Programming · question 142

Q142

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

A.
5
Answer
B.
10
C.
memory address
D.
15

Answer: Option A

Solution

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