C Standard Library

C <wchar.h> - WCHAR_MIN constant



The C <wchar.h> WCHAR_MIN is a macro constant definition of type wchar_t that expands into the smallest possible value of wchar_t.

This macro constant is also defined in header <stdint.h>.

Example:

The example below shows the value of WCHAR_MIN macro constant.

#include <stdio.h>
#include <wchar.h>
 
int main (){
  //largest possible value of wchar_t
  printf("WCHAR_MAX = %d\n", WCHAR_MAX);
  
  //smallest possible value of wchar_t
  printf("WCHAR_MIN = %d\n", WCHAR_MIN);
  return 0;
}

The output of the above code will be:

WCHAR_MAX = 2147483647
WCHAR_MIN = -2147483648

❮ C <wchar.h> Library