1 2 3 4 5 6 7 8 9
#include <stdio.h> int main(void) { int short a = 0xAA3A; printf("0x%X - 0x%X \n", a, (char)a); return 0; }