Dương Mạnh Cường
New member
What will be the output of the following C++ code?
A. 5
B. 10
C. memory address
D. 15
Code:
#include <iostream>
using namespace std;
int main()
{
int x;
int *p;
x = 5;
p = &x;
cout << *p;
return 0;
}
B. 10
C. memory address
D. 15