UINT8_MAX --Constant representing the maximum value of uint8_t

UINT8_MAX is a constant that represents the maximum value of uint8_t --signed 8-bit integer type. It can be used by including "stdint.h". 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("%u", UINT8_MAX);
}

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

The output value of UINT8_MAX.

255

Associated Information