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 the size of an empty class

Answer Posted / som shekhar

1 byte.

Reason being when compiler sees an empty class then then it
assigns a 1 byte memory, since the compiler sees the
declaration of the class so he needs to assign some space in
the memory, and hence assign 1 byte memory to hold the
address of the class.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which method cannot be overridden?

1089


Is react oop?

1058


What is encapsulation process?

1039


What is difference between abstraction and encapsulation?

1072


can we make game by using c

4134


Why do we use oop?

1097


How Do you Code Composition and Aggregation in C++ ?

25463


What does and I oop mean?

1172


What is protected in oop?

1068


Are polymorphisms mutations?

1157


How oops is better than procedural?

1095


What are constructors in oop?

1171


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

2320


What is encapsulation in oops?

1007


How to call a non virtual function in the derived class by using base class pointer

6555