Signed char n is -94, which is 10100010Code:signed char n = -94; unsigned char p; p = (n >>3) | (n << (8-3)); putc(p);
After doing a bit rotate, it should be 01010100, which is then put into Unsigned char p.
I am expecting the putc to be printing out 'T', which is 01010100 (decimal 84). However, it is printing an o with a carat above it, which the debug is showing as decimal 244, or 11110100.
What am I missing here?