1.

What is the output of this program?
#include 
using namespace std;
int main()
{
int num = 10;
void *ptr = #
int *ptr0 = static_cast(ptr);
cout << *ptr0;
return 0;
}

A. 10
B. Compilation Error
C. Runtime Error
D. Garbage value
E. None of these
Answer» B. Compilation Error


Discussion

No Comment Found

Related MCQs