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
What is name hiding in c++?
How the keyword struct is different from the keyword class in c++?
Which bit wise operator is suitable for putting on a particular bit in a number?
Why should you learn c++?
What are the types of container classes?
How can you tell what shell you are running on unix system?
How would you call C functions from C++ and vice versa?
Will this c++ program execute or not?
Give example of a pure virtual function in c++?
How do we implement inheritance in c++?
What are the five basic elements of a c++ program?
can any one help to find a specific string between html tags
which is changed to a sting..
weather.html looks (for location) is
Differentiate between declaration and definition. Can a program run without main function? Describe the advantage of an external iterator.