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 is a vector c++?

1177


Are strings mutable in c++?

1137


What is the basic difference between C and C++?

1177


What is #include iostream in c++?

1059


Will the following program execute?

1035


Explain Text Manipulation Routines?

1082


Explain how a pointer to function can be declared in C++?

1065


What are enumerations?

1106


Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].

1065


What is the difference between delegation and implemented-in-terms-of?

1006


What are maps in c++?

967


Write a program to add three numbers in C++ utilizing classes.

1119


What is const in c++?

1107


How would you use qsort() function to sort an array of structures?

1123


How much do coding jobs pay?

1013