In article <11**********************@j33g2000cwa.googlegroups .com>,
"dost" <ka**************@gmail.com> wrote:
if the size of empty class object is "1"....and if we declare
some..variable..in it suppose int
then its..size change....only the size of the variable will
matter...where the difault size gone
example
class empty { int a;}
its object size will be 2.....where the difault size gone
thanks
Who says there ever was a default size? The size of an object is either
1 or the sum of the sizeof each contained element (possibly plus some
padding,) whichever is greater.
--
Magic depends on tradition and belief. It does not welcome observation,
nor does it profit by experiment. On the other hand, science is based
on experience; it is open to correction by observation and experiment.