What is size of a empty class?
Answer Posted / mashal
Size of an empty class is 1 byte. It is non zero to ensure that the two different objects will have different addresses.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How a modifier is similar to mutator?
What is the basic difference between C and C++?
What is the type of this pointer in c++?
What is a namespace in c++?
What are the types of array in c++?
What is the use of cmath in c++?
What are protected members in c++?
What is a dangling pointer in c++?
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00
What is insertion sorting?
Explain data encapsulation?
What is the difference between an external iterator and an internal iterator?
Can union be self referenced?
Explain what are mutator methods in c++?
Can we declare a base-class destructor as virtual?