1

class Test { int x; }; int main() { Test t; cout << t.x; return 0; }

Correct Answer: Compiler Error

Make the most of this question

This page focuses on one CPP Programming question from Engineering. After checking the answer, return to the topic list to practice more or run a timed set.

CPP Programming MCQ: class Test { int x; }; int main() { Test t; cout << t.x; return 0; } | Extra Education