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 a class which contains no member
variables but has two objects??? is it 1 or 2??

Answer Posted / rao

2 (if two objects are empty class) otherwise Note : The
size of class = the size of Data members of the objects +
Size of data members of the Class.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between struct and class in terms of access modifier.

1235


What does catch(…) mean?

1174


What is std :: endl?

1081


Do vectors start at 0?

1046


Which c++ compiler is best?

1207


How to get the current position of the file pointer?

1104


How can we check whether the contents of two structure variables are same or not?

1125


What are enumerations?

1150


Why iomanip is used in c++?

1182


What is the difference between reference and pointer?

1229


What is a container class?

1215


Differentiate between realloc() and free().

1103


What are c++ templates used for?

1179


Will rust take over c++?

1118


What are the advantages of using typedef in a program?

1183