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 is an iterator?

913


What is c++ stringstream?

847


What is meaning of in c++?

906


Why is null pointer used?

881


Can we use clrscr in c++?

806


What is a .h file c++?

722


What is endianness?

847


Define a conversion constructor?

806


Where must the declaration of a friend function appear?

729


What is ostream in c++?

745


Describe protected access specifiers?

884


Define namespace in c++?

824


Can you explicitly call a destructor on a local variable?

787


Is there a sort function in c++?

754


How do you clear a set in c++?

808