Answer Posted / saket kale
when i tried to calculate the size of an empty class that
time i found that it takes 1 byte.which is the size of a
char.That might be the memory taken by the compiler for
storing the address of a empty class.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How the keyword struct is different from the keyword class in c++?
What is constructor c++?
What is math h in c++?
Which one is better- macro or function?
What is the use of this pointer in c++?
What is a stack c++?
What is the difference between an array and a list?
What is the purpose of the "delete" operator?
When does a 'this' pointer get created?
How does java differ from c and c++?
What is helper in c++?
What happens when the extern "c" char func (char*,waste) executes?
What is the difference between delegation and implemented-in-terms-of?
Name the implicit member functions of a class.
What is time_t c++?