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
What are the data types in c++?
Explain what are the sizes and ranges of the basic c++ data types?
What are the extraction and insertion operators in c++? Explain with examples.
How much is c++ certification?
How many static variables are created if you put one static member into a template class definition?
Do you know what are pure virtual functions?
What is c++ virtual inheritance?
Is c++ platform dependent?
Write a function that swaps the values of two integers, using int* as the argument type?
When do you call copy constructors?
What are default parameters? How are they evaluated in c++ function?
Can a Structure contain a Pointer to itself?
How do you declare A pointer to a function which receives nothing and returns nothing
Does c++ support multilevel and multiple inheritances?
What is the object serialization?