INT8_MAX --Constant representing the maximum value of int8_t

INT8_MAX is a constant that represents the maximum value of int8_t --signed 8-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", INT8_MAX);
}

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

The output is the value of INT8_MAX.

127 127

Associated Information