#include "stdio.h"
void main()
{
int a,b,c,d,e,f,g,h,i;
a = -2 & 3;
b = -2 & -3;
c = 2 & -3;
d = -2 | 3;
e = -2 | -3;
f = 2 | -3;
g =-2^3;
h=-2^-3;
i=2^-3;
printf("-2 & 3=%d",a);
printf("\n-2 & -3=%d",b);
printf("\n2 & -3=%d",c);
printf("\n-2 | 3=%d",d);
printf("\n-2 | -3=%d",e);
printf("\n2 | -3=%d",f);
printf("\n-2^3=%d",g);
printf("\n-2^-3=%d",h);
printf("\n2^-3=%d",i);
}
程序是这个啊。。我也是初学者啊。你学多久了。。