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

Define copy constructor.

618


What is a forward referencing and when should it be used?

573


What are c++ tokens?

590


How long will it take to learn programming?

582


What is object in c++ example?

621






Explain function overloading and operator overloading.

617


When you overload member functions, in what ways must they differ?

586


How would you use the functions sin(), pow(), sqrt()?

738


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

630


What are manipulators in c++ with example?

576


What is buffering in c++?

580


By using c++ with an example describe linked list?

600


What is abstract keyword in c++?

591


How do you define a class in c++?

640


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

616