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\"; }
};

Answers were Sorted based on User's Feedback



What is the output of this prog. ? struct A { A(){ cout << \"A\"; } }; struct..

Answer / shikha kataria

this program doesnot contain main() function.
so it cannot run

Is This Answer Correct ?    7 Yes 0 No

What is the output of this prog. ? struct A { A(){ cout << \"A\"; } }; struct..

Answer / amit prakash

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

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More C++ General Interview Questions

Is c++ low level?

0 Answers  


Is dev c++ a good compiler?

0 Answers  


what do you mean by memory management operators

4 Answers   HCL,


What is endl c++?

0 Answers  


What is the difference between "overloading" and "overridding"?

3 Answers  


how to access grid view row?

0 Answers  


Is c or c++ more useful?

0 Answers  


What is do..while loops structure?

0 Answers  


Should I learn c or c++ or c#?

0 Answers  


What is the difference between a constructor and a destructor in C++?

1 Answers  


What is the difference between equal to (==) and assignment operator (=)?

0 Answers  


What are the extraction and insertion operators in c++? Explain with examples.

0 Answers  


Categories