For given classes in C++, what will be the output of the following code:
#include<iostream>
using namespace std;
class A{
public:
    A(){cout<<"A";}
};
class B{
public:
    B(){cout<<"B";}
};

class C{
public:
    C(){cout<<"C";}
};

A a;
int main(){
    B b;
    return 1;
}
C c;

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes