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 empty class object

Answer Posted / vinay singh

the size of class is nothing until it will not create an object. Class is a template so class object size is determined.So here empty class object size is 1 byte and object is created on managed heap.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the "software peter principle”?

1145


Will a catch statement catch a derived exception if it is looking for the base class?

1002


Why do we need templates?

988


Is c++ harder than java?

1061


What is the use of setfill in c++?

1070


What is meant by const_cast?

1120


Define anonymous class.

1067


What are proxy objects in c++?

1174


How do you clear a set in c++?

1071


What is #include iostream in c++?

1056


What are friend functions in C++?

1064


Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

1241


By using c++ with an example describe linked list?

1022


What does catch(…) mean?

1110


Differentiate between a constructor and a destructor in c++.

1012