2 Answers
New AnswerEach object is given different address. So to distinguish different objects, size of each empty class object is 1 byte i.e. minimum memory allotted as per C++ standards. Some useful answers, you can get here: https://stackoverflow.com/questions/2362097/why-is-the-size-of-an-empty-class-in-c-not-zero
Learn Playing. Play Learning
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message