1.

What will be the output of following program? #include using namespace std; class Test{ public: Test() { cout <<"Hello from Test() "; } } a; int main() { cout <<"Main Started "; return 0; }

A. main started
B. main started hello from test()
C. hello from test() main started
D. compiler error: global objects are not allowed
Answer» D. compiler error: global objects are not allowed


Discussion

No Comment Found

Related MCQs