what is the size of empty class in C++,java?
Short Answer for C++: The C++ standard explicitly says that a class can not have zero size. Long Answer for C++: Because each object needs to have a unique address (also defined in the standard) you can’t really have zero sized objects. Imagine an array of zero sized objects. Because they have zero size they … Read more