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
When should overload new operator on a global basis or a class basis?
Differentiate between an array and a list?
Can malloc be used in c++?
What is called array?
How to tokenize a string in c++?
What are the benefits of c++?
How many ways can a variable be initialized into in C++?
What is the most common mistake on c++ and oo projects?
Can you explicitly call a destructor on a local variable?
Difference between strdup and strcpy?
How do you establish an is-a relationship?
Should I learn c++ c?
What is a multiset c++?
What are the advantages of using a pointer?
What is an incomplete type in c++?