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

What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard

995


Explain "const" reference arguments in function?

1011


Does c++ vector allocate memory?

959


How the keyword struct is different from the keyword class in c++?

1000


What is a .h file c++?

1004


What is a unnitialised pointer?

1026


What are the uses of pointers?

1034


Is c++ a good first language to learn?

1034


How can you quickly find the number of elements stored in a static array?

1064


What is c++ w3school?

1068


What do you mean by “this” pointer?

1045


How delete [] is different from delete?

970


Are iterators pointers?

1112


Can the creation of operator** is allowed to perform the to-the-power-of operations?

964


Can a program run without main?

1188