Q. What will be the output of following program?#include <iostream> using namespace std;class Test{public:Test() { cout <<"Hello from Test() "; }} a;int main(){cout <<"Main Started "; return 0;} (Solved)
1. main started
2. main started hello from test()
3. hello from test() main started
4. compiler error: global objects are not allowed
- c. hello from test() main started