C++ int vs long long in 64 bit machine
问题 My computer has 64 bit processor and when I look for sizeof(int) , sizeof(long) , and sizeof(long long) , it turns out that int and long are 32 bits, and long long is 64 bit. I researched the reason, and it appears that popular assumption telling that int in C++ fits machine's word size is wrong. As I understood it is up to compiler to define what will be the size, and mine is Mingw-w64. The reason for my research was understanding that if the usage of types smaller than word size is