How to Declare a 32-bit Integer in C

前端 未结 9 2254
日久生厌
日久生厌 2020-12-05 03:53

What\'s the best way to declare an integer type which is always 4 byte on any platforms? I don\'t worry about certain device or old machines which has 16-bit int

9条回答
  •  无人及你
    2020-12-05 04:25

    If stdint.h is not available for your system, make your own. I always have a file called "types.h" that have typedefs for all the signed/unsigned 8, 16, and 32 bit values.

提交回复
热议问题