Q. Output of following C++ program?
Code:
class Test {
int x;
};
int main() {
Test t;
cout << t.x;
return 0;
}
β
Correct Answer: (C)
Compiler Error
class Test {
int x;
};
int main() {
Test t;
cout << t.x;
return 0;
}
You must be Logged in to update hint/solution