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

What do manipulators do?

1006


If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

986


What does I ++ mean in c++?

1087


How a macro differs from a template?

1155


What do you mean by stack unwinding in c++?

1216


What do you mean by delegate? Can a user retain delegates?

930


Is it possible to write a c++ template to check for a function's existence?

1012


What is functions syntax in c++?

1125


What can I safely assume about the initial values of variables which are not explicitly initialized?

1045


Why is main function important?

1096


What is a volatile variable in c++?

1430


What are the advantages of using pointers in a program?

1127


What is linked list in c++?

1120


What is the difference between multiple and multilevel inheritance in c++?

1124


What is function declaration in c++ with example?

1079