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 a volatile variable in c++?

1466


If I is an integer variable, which is faster ++i or i++?

1071


What is the keyword auto for?

1040


Evaulate: 22%5 a) 2 b) 4 c) 0

1095


Can we use clrscr in c++?

1082


Define a constructor - what it is and how it might be called (2 methods)?

1142


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

1098


Why is c++ called oops?

1178


What is vector pair in c++?

1229


What is jump statement in C++?

1138


How can virtual functions in c++ be implemented?

1135


What are mutator methods in c++?

1166


If all is successful, what should main return a) 0 b) 1 c) void

1016


Who created c++?

1065


What is the basic of c++?

1062