What is the bit size of long on 64-bit Windows?

前端 未结 7 829
天涯浪人
天涯浪人 2020-11-22 06:50

Not to long ago, someone told me that long are not 64 bits on 64 bit machines and I should always use int. This did not make sense to me. I have se

7条回答
  •  滥情空心
    2020-11-22 07:07

    The size in bits of long on Windows platforms is 32 bits (4 bytes).

    You can check this using sizeof(long).

提交回复
热议问题