整数変換の順位

C99 の 6.3.1.1 のよく使う部分のまとめ。

  1. long long = unsigned long long
  2. int64_t = uint64_t
  3. long = unsigned long
  4. int = unsigned int
  5. int32_t = uint32_t
  6. short = unsigned short
  7. int16_t = uint16_t
  8. char = signed char = unsigned char
  9. int8_t = uint8_t
広告を非表示にする