FYI, the only guarantee is:
As stated in the C++ specs. For some compilers, these are all '1'.Code:sizeof (char) = 1 sizeof (char) <= sizeof (short) <= sizeof (int) <= sizeof (long)
Viggy
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 21
Thread: size of structureThreaded View
|
Click Here to Expand Forum to Full Width |