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 the difference between the parameter to a template and the parameter to a function?
Differentiate between the message and method in c++?
What are the various arithmetic operators in c++?
What does ios :: app do in c++?
How does atoi function work?
Describe the setting up of my member functions to avoid overriding by the derived class?
Write a struct time where integer m, h, s are its members?
Do you know the use of vtable?
Why c++ is the best language?
What is null and void pointer?
Implement stack operations with pointers with appropriate exception checks.
How do you flush std cout?
How do you define a class in c++?
Why is c++ a mid-level programming language?
If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?