Examveda

What will be the output of the following C++ 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

Answer: Option C


Join The Discussion

Related Questions on Classes and Objects in C plus plus