1.

What is the output of this program?
#include <iostream>
using namespace std;
int main()
{
int num = 6;
int* ptr = &num;
cout << sizeof(ptr);
return 0;
}

A. 2
B. 4
C. 6
D. 8
E. Depends on compiler
Answer» B. 4


Discussion

No Comment Found

Related MCQs