How to Find Size of Object In C++
The size of a class object is same as the size of a structure object in C. i.e., the sum of sizes of all its data members. However, if an object has no data members its size would be one byte rather than
zero bytes because the minimum amount of
memory that can be allocated for a variable is one byte.
Size of Object in C++
The sum of two number is16
The Size of ob1 Object is 12 bytes
© 2016-2019, Codeverb.com - All Rights Reserved