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
Difference between struct and class in terms of access modifier.
What does catch(…) mean?
What is std :: endl?
Do vectors start at 0?
Which c++ compiler is best?
How to get the current position of the file pointer?
How can we check whether the contents of two structure variables are same or not?
What are enumerations?
Why iomanip is used in c++?
What is the difference between reference and pointer?
What is a container class?
Differentiate between realloc() and free().
What are c++ templates used for?
Will rust take over c++?
What are the advantages of using typedef in a program?