The char type is 8 bits long, and int has 32 bits. When you assign an int variable to a char variable, the value is cut into only the 8 least significant bits.
65537 is in binary format 10000000 000000001
So, the least 00000001 high byte is 00000001
cd611 source share