In brief:
The size of an empty class is non zero, the reason for this is, if size of empty class is zero, it violates C++ object definition, the object definition says that "object should have unique identity, state, behavior". How can an empty class object make sure of unique identity if the size of object [...]
Continue Reading..