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#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c# - Making TableLayoutPanel Act Like An HTML Table (Cells That Resize Automatically Around Text) -