1.

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

A. compile time error
B. garbage
C. 5
Answer» B. garbage


Discussion

No Comment Found

Related MCQs