#include <stdio.h>
int main( )
{
char a = 0xAA ;
unsigned char b = 0xBB ;
printf ( "unsigned char b = 0xBB;\n " ) ; printf ( " 0x%X\t ~ (char) a\n " , ( char ) a
) ; printf ( " 0x%X\t ~ (char) b\n " , ( char ) b
) ; printf ( " 0x%X\t ~ (signed char) a\n " , ( signed char ) a
) ; printf ( " 0x%X\t ~ (signed char) b\n " , ( signed char ) b
) ; printf ( " 0x%X\t ~ (unsigned char) a\n " , ( unsigned char ) a
) ; printf ( " 0x%X\t ~ (unsigned char) b\n " , ( unsigned char ) b
) ;
return 0 ;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKCkKewogICAgY2hhciBhID0gMHhBQTsKICAgIHVuc2lnbmVkIGNoYXIgYiA9IDB4QkI7CgogICAgcHJpbnRmKCJjaGFyICAgICAgICAgIGEgPSAweEFBO1xuIik7CiAgICBwcmludGYoInVuc2lnbmVkIGNoYXIgYiA9IDB4QkI7XG4iKTsKICAgIHByaW50ZigiXG4iKTsKICAgIHByaW50ZigiICAgIDB4JVhcdCDvvZ4gYVxuIiwgYSk7CiAgICBwcmludGYoIiAgICAweCVYXHQg772eIGJcbiIsIGIpOwogICAgcHJpbnRmKCJcbiIpOwogICAgcHJpbnRmKCIgICAgMHglWFx0IO+9niAoY2hhcikgYVxuIiwgKGNoYXIpIGEpOwogICAgcHJpbnRmKCIgICAgMHglWFx0IO+9niAoY2hhcikgYlxuIiwgKGNoYXIpIGIpOwogICAgcHJpbnRmKCJcbiIpOwogICAgcHJpbnRmKCIgICAgMHglWFx0IO+9niAoc2lnbmVkIGNoYXIpIGFcbiIsIChzaWduZWQgY2hhcikgYSk7CiAgICBwcmludGYoIiAgICAweCVYXHQg772eIChzaWduZWQgY2hhcikgYlxuIiwgKHNpZ25lZCBjaGFyKSBiKTsKICAgIHByaW50ZigiXG4iKTsKICAgIHByaW50ZigiICAgIDB4JVhcdCDvvZ4gKHVuc2lnbmVkIGNoYXIpIGFcbiIsICh1bnNpZ25lZCBjaGFyKSBhKTsKICAgIHByaW50ZigiICAgIDB4JVhcdCDvvZ4gKHVuc2lnbmVkIGNoYXIpIGJcbiIsICh1bnNpZ25lZCBjaGFyKSBiKTsKCiAgICByZXR1cm4gMDsKfQ==