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

When does the c++ compiler create temporary variables?

1030


What is the difference between ++ count and count ++?

1131


Are there any special rules about inlining?

1064


what is data encapsulation in C++?

1053


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

1059


What is c++ iterator?

1120


What is a friend function in c++?

1596


What do you understand by a pure virtual member function?

996


Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).

1100


What is java and c++?

1159


How do I download c++?

997


What are friend functions in C++?

1054


How do you save a c++ program?

1027


what are the iterator and generic algorithms.

2142


When must you use a pointer rather than a reference?

1020