INT32_MAX --Constant representing the maximum value of int32_t

INT32_MAX is a constant that represents the maximum value of int32_t --signed 32-bit integer type. It can be used by including the " stdint.h" header. This is the constant macro introduced in C99.

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

int main (void) {
  printf("%d", INT32_MAX);
}

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

The output INT32_MAX value.

2147483647

Associated Information