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 / amit prakash

der's no main function so it cant run...

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What apps are written in c++?

705


Write a Program to find the largest of 4 no using macros.

686


What is the real purpose of class – to export data?

718


How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

676


Explain public, protected, private in c++?

658






What data encapsulation is in c++?

675


Define a pdb file.

731


How a macro differs from a template?

766


What does extern mean in a function declaration in c++?

800


What is the difference between an enumeration and a set of pre-processor # defines?

951


how to connect with oracle 9i with server in socket program in c/c++

1958


Explain the use of virtual destructor?

710


What is the basic structure of a c++ program?

708


Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

646


Differentiate between an inspector and a mutator ?

790