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

What are manipulators in c++ with example?

1060


What is #include sstream?

1064


What is the exit function in c++?

987


Write a program to find the reverse Fibonacci series starting from N.

1269


What can I use instead of namespace std?

1153


What is the difference between #define debug 0 and #undef debug?

1183


Is c++ vector a linked list?

997


What is the difference between an array and a list?

1033


What is &x in c++?

1001


What are the 3 levels of programming languages?

1043


What are exceptions c++?

1040


Do you know the use of vtable?

1133


Can turbo c++ run c program?

1096


What are smart pointers?

2270


Write a Program to find the largest of 4 no using macros.

1081