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 type of question are asked in GE code writing test based on c++ data structures and pointers?

3979


Difference between overloading vs. Overriding

1083


What is an inclusion guard?

1198


What is endianness?

1098


Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

1001


What are the implicit member functions of class?

1089


What are advantages of using friend classes?

1076


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

1143


What is a set in c++?

974


What are literals in C++?

1024


Explain pass by value and pass by reference.

1057


What is an incomplete type in c++?

1277


Is c++ pass by reference or value?

1066


What is #include iostream?

1248


Will rust take over c++?

1059