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 / shikha kataria
this program doesnot contain main() function.
so it cannot run
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is functions syntax in c++?
What is dev c++ used for?
Differentiate between structure and class in c++.
What kind of jobs can I get with c++?
What is a block in c++?
Is there a c++ certification?
What is the use of vtable?
What happens when the extern "c" char func (char*,waste) executes?
What are default parameters? How are they evaluated in c++ function?
explain the reference variable in c++?
How a macro differs from a template?
Explain about templates of C++.
What is c++ 11 and c++ 14?
What are maps in c++?
What are the advantages of c++ over c?