Having read Difference between long and int data types and Long Vs. Int C/C++ - What's The Point?
i'm trying to generate outputs of sizeof(int) and sizeof(long) by creating a 32 bit exe and a 64 bit exe.
I'm using visual studio 2010 on Windows 7 ultimate x64 SP1 and have selected x64 in the configuration manager. My pre-processor is also set to WIN64. However, i still get the sizeof(int) and sizeof(long) as 4 bytes, no matter whether i create a 32 bit exe or a 64 one.
Is there some other compiler flag that i need to set to generate a x64 exe (I cannot see the generated exe in x64/Debug folder of my project)