int32_t --Signed 32-bit integer type

"Int32_t" is a signed 32-bit integer type. It can be used by including the " stdint.h" header. This is the type introduced in C99.

# Signed 32-bit integer type
int32_t

The maximum value of an integer that can be represented by a signed 32-bit integer type is "2147483647", and the minimum value is "-2147483648".

The maximum value is " INT32_MAX" and the minimum value is " INT32_MIN". It is defined.

int32_t sample code

This is a sample code using int32_t.

#include <stdio.h>
#include <stdint.h>

int main (void) {
  int32_t num = -2147483648;
  
  printf("%d\n", num);
}

"%D" is used in the format specifier of printf function.

Output result.

-2147483648

Associated Information