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 Member Functions in Classes?

1204


Write a function that swaps the values of two integers, using int* as the argument type?

1031


What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

1202


Which bit wise operator is suitable for putting on a particular bit in a number?

1213


Why struct is used in c++?

1126


Why use of template is better than a base class?

1189


What is the meaning of c++?

1031


What is public, protected, private in c++?

1154


What are register variables?

1154


How to get the current position of the file pointer?

1049


Discussion on error handling of C++ .

1124


What is difference between class and function?

1097


what are the types of Member Functions?

1131


Explain pass by value and pass by reference.

1061


What is the use of 'this' pointer?

1252