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 / asghar ali chandio

every object will occypy one byte of memory. If objects are
two then Size will be two bytes.

Is This Answer Correct ?    5 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c++ in english?

998


What are multiple inheritances (virtual inheritance)?

1023


What is the benefit of encapsulation?

1021


Explain about templates of C++.

1090


What is the difference between strcpy() and strncpy()?

1073


Why is c++ still used?

1014


What do you mean by volatile and mutable keywords used in c++?

930


Can comments be longer than one line?

1023


What are friend classes? What are advantages of using friend classes?

1044


What is the best free c++ compiler for windows?

1046


If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?

992


How should runtime errors be handled in c++?

1087


What are the data types in c++?

886


What is recursion?

1944


Describe linkages and types of linkages?

944