#include "stdafx.h" struct SS{ int a; int b; char c[50]; }; int _tmain(int argc, _TCHAR* argv[]) { int sizeA = sizeof(SS); int sizeB = sizeof(int)*2+sizeof(char)*50; }
//
The sizeA = 60 Not 58?
Thank u for your answer
↧
the Size of struct in Visual Studio 2008 C++
↧