what is the use of sizeof in c++...
sizeof
Collapse
X
-
Originally posted by reonwhat is the use of sizeof in c++...
I.e. sizeof(int) returns the size in bytes of an integer.
These values can vary from system to system, but can be standardised across systems.
Adrian -
In a code i saw there using sizeof both in class name and class objects..
what is the use of putting sizeof in that cases....
Originally posted by AdrianHTo get the size of an class or struct or type.
I.e. sizeof(int) returns the size in bytes of an integer.
These values can vary from system to system, but can be standardised across systems.
AdrianComment
-
Originally posted by reonIn a code i saw there using sizeof both in class name and class objects..
what is the use of putting sizeof in that cases....
AdrianComment
Comment