#include "stdio.h" main() { int a,b; a=234;
printf("\40: The a's 1 complement(decimal) is %d \n",~a);
getch(); } a=234,取反先转换成二进制是11101010,按位取反应是00010101,十进制是21,为何输出-235?
[此贴子已经被作者于2005-4-4 9:13:31编辑过]