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\"; }
};
Answers were Sorted based on User's Feedback
Answer / shikha kataria
this program doesnot contain main() function.
so it cannot run
| Is This Answer Correct ? | 7 Yes | 0 No |
Is c++ low level?
Is dev c++ a good compiler?
what do you mean by memory management operators
What is endl c++?
What is the difference between "overloading" and "overridding"?
how to access grid view row?
Is c or c++ more useful?
What is do..while loops structure?
Should I learn c or c++ or c#?
What is the difference between a constructor and a destructor in C++?
What is the difference between equal to (==) and assignment operator (=)?
What are the extraction and insertion operators in c++? Explain with examples.