I am using VC 6.0
Why is it happeningCode:class C { char c; int int1; int int2; int i; long l; short s; }; The size of this class is 24 bytes class C { int int1; int int2; int i; long l; short s; char c; }; Now the size of this class is 20 bytes.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 9 of 9
Thread: diffrence in sizeof objectThreaded View
|
Click Here to Expand Forum to Full Width |