I'm using Visual Studio 2015 to build a project on 32bit platform and on 64 bit platform.
Sizeof returns an unsigned int in the 32 bit platform and an unsigned __int64 in the 64 bit platform.
I have the following code :
printf ("limit is %u. \n",sizeof(var));
The type of
sizeof is a
%zu as the format specifier for that type. It's guaranteed to be well-defined for all platforms.