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 ctime c++?

683


What are the types of pointer?

642


How does atoi function work?

744


Should the member functions which are made public in the base class be hidden?

654


Does c++ have foreach?

623






What are libraries in c++?

689


Explain the difference between using macro and inline functions?

684


What is the basic difference between C and C++?

707


What do you mean by inheritance in c++?

700


What are special characters c++?

654


How a pointer differs from a reference?

810


What is else if syntax?

770


Why is c++ is better than c?

615


Can you please explain the difference between using macro and inline functions?

621


Write a note about the virtual member function?

693