&&和||的關(guān)系:#include <stdio.h>int main(){int i = 0,a=1,b=2,c=3,d=4;//&&每個(gè)表達(dá)式都要執(zhí)行,||第一個(gè)表達(dá)式為真,后面的就不執(zhí)行了/*i= a++&&++b&&d++;*/i = a++||++b||d++;/*printf("a=%d\nb=%d\nc=%d\nd=%d\n",a,b,c,d);*///2 3 3 5printf("a=%d\nb=%d\nc=%d\nd=%d\n", a, b, c, d);//2 2 3 4printf("i=%d\n",i);//1return 0;}