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...

What is size of a empty class?

Answer Posted / mashal

Size of an empty class is 1 byte. It is non zero to ensure that the two different objects will have different addresses.

Is This Answer Correct ?    0 Yes 0 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?

1077


Differentiate between an array and a list?

1176


Can malloc be used in c++?

1073


What is called array?

1079


How to tokenize a string in c++?

1055


What are the benefits of c++?

1053


How many ways can a variable be initialized into in C++?

1015


What is the most common mistake on c++ and oo projects?

974


Can you explicitly call a destructor on a local variable?

1028


Difference between strdup and strcpy?

1204


How do you establish an is-a relationship?

1144


Should I learn c++ c?

1045


What is a multiset c++?

1143


What are the advantages of using a pointer?

1074


What is an incomplete type in c++?

1273