Answer Posted / hitesh sojitra
When you calculate the size of a empty class that time you can c it takes 1 byte.which is the size of a char which a compiler takes for storing the address of a empty class.
The size of an empty class would depend on what is the range specified for the compiler for char. It takes that much space to store the address of a class.
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
Do vectors start at 0 c++?
What is the object serialization?
What is polymorphism in c++? Explain with an example?
Describe new operator?
which of the following is not an secondary constant a) array b) real c) union
A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Why do we need pointers?
How would you use qsort() function to sort an array of structures?
By using c++ with an example describe linked list?
Explain the register storage classes in c++.
Define stacks. Provide an example where they are useful.
Explain what data encapsulation is in c++?
What is c++ iterator?
Is c++ a dying language?
What is the type of 'this' pointer?