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

When should overload new operator on a global basis or a class basis?

1019


What is the difference between the functions memmove() and memcpy()?

1075


Declare a class vehicle and make it an abstract data type.

922


How do you show the declaration of a virtual constructor?

899


What are associate containers?

976


Is c++ the hardest language?

934


Is overriding possible in c++?

951


How do we balance an AVL Tree in C++?

1087


Explain the purpose of the keyword volatile.

1102


How new/delete differs from malloc()/free?

1085


Why would you use pointers in c++?

1094


When do we use copy constructors?

1022


What is the meaning of string in c++?

1010


What is an adjust field format flag?

1069


What is a dynamic binding in c++?

902