I wanted to display the highest and lowest "short" values as hexadecimal numbers (using a Windows environment, mingw64 compiler):
printf("largest %x and smallest %x",SHRT_MAX,SHRT_MIN)
The output was as expecteded for the max number -> 7fff but for the min number the result is -> ffff 8000
Does anyone know why the min number is shown as a 4 byte number.
Thanks for your help, Bert