What will be the output of the following C++ code? [code] #include <iostream> using namespace std; int main() {

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

Tìm kiếm

Back
Top