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 / 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 the difference between prefix and postfix versions of operator++()?

1134


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

3891


What are virtual constructors/destructors?

1072


What is a container class? What are the types of container classes in c++?

1360


What is the use of "new" operator?

1175


Is java a c++?

1098


What is a far pointer? where we use it?

1126


Can a program run without main function?

1219


Write my own zero-argument manipulator that should work same as hex?

1093


Do class declarations end with a semicolon? Do class method definitions?

1193


Define a nested class. Explain how it can be useful.

1128


Is c++ fully object oriented?

1015


What are destructors?

1057


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

1605


What are structs in c++?

1076