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


Please Help Members By Posting Answers For Below Questions

What is functions syntax in c++?

610


What is dev c++ used for?

600


Differentiate between structure and class in c++.

589


What kind of jobs can I get with c++?

589


What is a block in c++?

542






Is there a c++ certification?

595


What is the use of vtable?

660


What happens when the extern "c" char func (char*,waste) executes?

626


What are default parameters? How are they evaluated in c++ function?

657


explain the reference variable in c++?

565


How a macro differs from a template?

630


Explain about templates of C++.

672


What is c++ 11 and c++ 14?

575


What are maps in c++?

492


What are the advantages of c++ over c?

574