c - Visual Studio Changing number of bytes for data type -


is possible change number of bytes long has in visual studio? when compiling c code sizeof(int) , sizeof(long) both equal 4.

since you're using visual studio, presumably target platform (and libraries you're using) target windows. win64 platform uses llp64 model (http://msdn.microsoft.com/en-us/library/aa384083.aspx) int , long 32-bits. futile think try make long 64-bit type in situation.

use int64_t (from stdint.h) or long long or similar 64-bit integer type


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -