What is the output of this prog. ?
struct A { A(){ cout << \"A\"; } };
struct B { B(){ cout << \"B\"; } };
struct C { C(){ cout << \"C\"; } };
struct D { D(){ cout << \"D\"; } };
struct E : D { E(){ cout << \"E\"; } };
struct F : A, B
{
C c;
D d;
E e;
F() : B(), A(),d(),c(),e() { cout << \"F\"; }
};
Answer Posted / amit prakash
der's no main function so it cant run...
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Is it possible to provide special behavior for one instance of a template but not for other instances?
Please explain the reference variable in c++?
What is dev c++ used for?
What is cout flush?
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
What do you know about near, far and huge pointer?
Can I have a reference as a data member of a class? If yes, then how do I initialise it?
Explain how the virtual base class is different from the conventional base classes of the opps.
What is ifstream c++?
Which is best ide for c++?
Is dev c++ a good compiler?
Can a program run without main in c++?
Which is better c++ or java?
How would you use the functions sin(), pow(), sqrt()?
What are the advantage of using register variables?