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

Lê Như Ý

New member
What will be the output of the following C++ code?
Code:
    #include <iostream>
    using namespace std;
    int main() 
    {
        int x = 9;
        int* p = &x;
        cout << sizeof(p);
        return 0;
    }
A. 4
B. 2
C. Depends on compiler
D. 8
 

Tìm kiếm

Back
Top