D
dost
can any budy tell me
why the size of the empty class object is 1
thank you
kapil kaushik
why the size of the empty class object is 1
thank you
kapil kaushik
dost said:can any budy tell me
why the size of the empty class object is 1
"dost said:can any budy tell me
why the size of the empty class object is 1
can any budy tell me
why the size of the empty class object is 1
"dost said: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
Size of an empty class object is >= 1. However, an empty base-classJack said:The size of an empty class object is not necessarily 1. It is merely
required to be greater than 0.
--
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.