I have a curiosity about unsigned char. I have a curiosity about unsigned char. I did a subtraction operation on unsigned char accidentally.I know i am not supposed to do that. But i am bit curious about how a particular answer came. Can anybody explain this at bit level?
unsigned char x = 150;
unsigned char y = 229;
unsigned char z = x - y;
finally i got 177 for z during the debugging
I am running this code in visual studio 2008.