UINT16_MAX --Constant representing the maximum value of uint16_t

UINT16_MAX is a constant that represents the maximum value of uint16_t. This is the constant macro introduced in C99.

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

int main (void) {
  printf("%u\n", UINT16_MAX);
}

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

The output value of UINT16_MAX.

65535

Associated Information