What is the size of an object of an empty class?

Hi frnds, do you know what is the size of an object of an empty class in C++...

Answer is "1 byte".

Its because C++ allows us to create object of an empty class
and the minimum memory that a class contains is 1 byte

Comments

Popular Posts