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

daily Routine of father

1458


What is nested class in c++?

1017


What is the best way to declare and define global variables?

1414


How does com provide language transparency?

1061


Can you declare an array without a size in c++?

1065


What is class definition in c++ ?

1140


Search for: what is pair in c++?

1175


What is the use of function pointer?

1075


Write a Program to find the largest of 4 no using macros.

1141


How do you decide which integer type to use?

1050


Is map ordered c++?

1147


What is vectorial capacity?

1231


Differentiate between C and C++.

1324


Explain the uses oof nested class?

1193


What does new do in c++?

1128