The difference of int8_t, int_least8_t and int_fast8_t?

前端 未结 5 1521
感情败类
感情败类 2020-11-27 03:07

What is the difference between the int types int8_t, int_least8_t and int_fast8_t?

5条回答
  •  自闭症患者
    2020-11-27 03:59

    intN_t (and uintN_t) is not required in all C99 implementations. These types are the "exact-width integer types". They are required in implementations where it makes sense to have them (basically every desktop computer).

    int_leastN_t is required in all C99 implementation for values of N of 8, 16, 32, and 64. This is the "minimum-width integer types".

    int_fastN_t is required in all C99 implementation for values of N of 8, 16, 32, and 64. This is the "fastest minimum-width integer types".

提交回复
热议问题