Facebook Page Twitter Page LinkedIn Page
× C Standard Library


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 below example 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 = %ld\n", WCHAR_MAX);
  
  //smallest possible value of wchar_t
  printf("WCHAR_MIN = %ld\n", WCHAR_MIN);
  return 0;
}

The output of the above code will be:

WCHAR_MAX = 2147483647
WCHAR_MIN = -2147483648

❮ C <wchar.h> Library