SIZE_MAX --maximum value of size_t type
SIZE_MAX is a constant macro that represents the maximum value of size_t type. You can use it by include "stdint.h".
This is a sample that outputs SIZE_MAX in a 64-bit Linux environment. %zu is a format specifier that can output a value of type size_t in a portable way.
#include <stdio.h> #include <stdint.h> int main (void) { printf("%zu\n", SIZE_MAX); }
This is the output result.
18446744073709551615