According to the explanation, this is not called "inversion", but should be called bit-by-bit inversion; Because "inversion" is to reverse the binary bit of 1234, that is, if it is11kloc-0/,it will become1kloc-0/1,and 00/should be output according to this problem.
Code text:
# contains "stdio.h"
int main(int argc,char *argv[]){
char ch
Printf ("Please enter a letter ... \ n");
if(scanf(" %c ",& ampch)== 1。 & amp(ch & gt= ' A ' & amp& ampch & lt= ' Z ' | | ch & gt= ' a ' & amp& ampch & lt='z '))
printf("0x%x\n",ch^0x0f);
other
Printf ("Input error, exit ... \ n");
Returns 0; ?
}