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

What are the data types in c++?

685


Explain what are the sizes and ranges of the basic c++ data types?

862


What are the extraction and insertion operators in c++? Explain with examples.

891


How much is c++ certification?

765


How many static variables are created if you put one static member into a template class definition?

748


Do you know what are pure virtual functions?

850


What is c++ virtual inheritance?

810


Is c++ platform dependent?

833


Write a function that swaps the values of two integers, using int* as the argument type?

782


When do you call copy constructors?

866


What are default parameters? How are they evaluated in c++ function?

882


Can a Structure contain a Pointer to itself?

795


How do you declare A pointer to a function which receives nothing and returns nothing

941


Does c++ support multilevel and multiple inheritances?

738


What is the object serialization?

846