在C++(WIN32)中int和long有何区别
int, unsigned int 4 bytes
long, unsigned long 4 bytes
int, unsigned int 4 bytes
long, unsigned long 4 bytes
回答:
在Win32中两者没有区别。两者的区别在于int型可能因为操作系统不同而不同,如在Win16下,int等同于short型。而在将来的位操作系统中,int可能表示位整数。而不管在什么操作系统下,long都是32位。