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 overriding possible in c++?
How do I tokenize a string in c++?
What are the different types of Storage classes?
What is const in c++?
What are the various arithmetic operators in c++?
Will a catch statement catch a derived exception if it is looking for the base class?
What is lvalue?
What are the advantages of pointers?
What is the best way to declare and define global variables?
Explain working of printf?
Which c++ operator cannot overload?
What is implicit pointer in c++?