Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Is it possible to provide special behavior for one instance of a template but not for other instances?

1058


Please explain the reference variable in c++?

1019


What is dev c++ used for?

976


What is cout flush?

959


Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

997


What do you know about near, far and huge pointer?

1062


Can I have a reference as a data member of a class? If yes, then how do I initialise it?

1160


Explain how the virtual base class is different from the conventional base classes of the opps.

1104


What is ifstream c++?

979


Which is best ide for c++?

966


Is dev c++ a good compiler?

897


Can a program run without main in c++?

1127


Which is better c++ or java?

928


How would you use the functions sin(), pow(), sqrt()?

1133


What are the advantage of using register variables?

1113