Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

the Size of struct in Visual Studio 2008 C++

$
0
0

#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



Viewing all articles
Browse latest Browse all 15302


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>