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
What are the advantages of inheritance in c++?
What is auto used for in c++?
Can a constructor return a value?
What are the 2 main types of data structures?
Can char be a number c++?
Why is it called c++?
Give example of a pure virtual function in c++?
Which programming language should I learn first?
What is the purpose of template?
What is singleton class in c++?
What is the difference between struct and class?
What do you mean by delegate? Can a user retain delegates?
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
How can a called function determine the number of arguments that have been passed to it?
What is difference between class and structure in c++?