1.

Predict the output?#include using namespace std;class Test{ int x; Test() { x = 5; } };int main(){ Test *t = new Test; cout << t->x;}

A. Compiler Error
B. 5
C. Garbage Value
Answer» B. 5


Discussion

No Comment Found