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...

why the size of an empty class is 1

Answer Posted / abhishek

its because an empty class makes an entry to symbol table (code segment)
which requires a symoblic mapping of 1 byte

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain operator overloading.

1071


What is a block in c++?

1057


What are the rules for naming an identifier?

1065


Differentiate between declaration and definition.

1058


What is the exit function in c++?

993


What do you mean by “this” pointer?

1077


what is a class? Explain with an example.

1142


Who was the creator of c++?

1055


Is it possible to use a new for the reallocation of pointers ?

1066


Which is best c++ or java?

1091


Define a pointer to a data member of the type pointer to pointer?

994


What is a hashmap c++?

1129


Is swift faster than c++?

1026


What is double in c++?

1073


If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?

1042