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

前端 未结 7 679
天涯浪人
天涯浪人 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

    Microsoft has also defined UINT_PTR and INT_PTR for integers that are the same size as a pointer.

    Here is a list of Microsoft specific types - it's part of their driver reference, but I believe it's valid for general programming as well.

提交回复
热议问题