Size of int in C on different architectures

前端 未结 7 1806
甜味超标
甜味超标 2020-12-09 20:31

I am aware that the specification of the C language does not dictate the exact size of each integer type (e.g., int).

What I am wondering is: Is there a

7条回答
  •  一整个雨季
    2020-12-09 20:56

    As far as I know, the answer is no. We code for different platforms and we just use typedefs for the specific platforms using #if/#else. For example on Win32: typedef int int32;

提交回复
热议问题