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 are function pointers?

1142


What is a down cast?

1177


You run a shell on unix system. How would you tell which shell are you running?

1220


What is main function in c++ with example?

1304


What is size of string in c++?

1043


Why is c++ considered difficult?

1226


What is the latest c++ standard?

1195


What are pointer-to-members? Explain.

1227


What is a binary file? List the merits and demerits of the binary file usagein C++.

1376


How do c++ struct differs from the c++ class?

1264


Program to check whether a word is a sub-string or not of a string typed

2094


What is the difference between while and do while loop?

1206


How do we implement inheritance in c++?

1179


What is flush c++?

1079


What is a manipulative person?

1080