代码如下:
#include<stdio.h>
int main(void)
{
int a,b,c,d,e;
b = !2;
c = 3/4;
d = 5%6;
e = (7==8);
a = 1+!2+3/4+5%6+(7==8)+9;
//1+0+0+5+0+9=15
printf("1+!2+3/4+5%6+(7==8)+9 =%d\n",a);
printf("!2 = %d\n3/4 = %d\n5%6 = %d\n(7==8) = %d\n",b,c,d,e);
return 0;
}
结果如下: