In the following code:-
char a = 0x80; unsigned char b = 0x80; if(a==0x80) printf("a==0x80\n"); if(b==0x80) printf("b==0x80\n");
Incidentally, 0x80 in 8-bit twos-complement represents -128, not -1. -1 is all ones, 0xff. Errr. That's what I meant. -128, yeah. -128. Jon