Possible Duplicate:
What the pointer size in 64 bits computer in C++?
I’m studing C at The University.
I try to setup an environment for programming on Windows 7/8 and have a problem
This code:
int main()
int *p;
printf("%d",sizeof(p));
return 0;
}
prints 4 instead of 8 (8 is printed in University).
What can i do?
My Windows is 64bit and x64 processor.
You probably compile the code into 32 bit application. You need to compile it as 64 bit application. Check your compiler settings. It does not matter that your OS is 64 bit.