main() { printf("%d,%d\n",3+2,3-2); printf("%d,%d,%f\n",3*2,3/2,3.0/2); printf("%d\n",3%2); }
main() { int i=3,j; j=i++; printf("i=%d,j=%d\n",i++,j); j=++i; printf("i=%d,j=%d\n",++i,j); j=--i; printf("i=%d,j=%d\n",i--,j); j=i--; printf("i=%d,j=%d\n",--i,j); }
main() { int a; a=34.567; printf("a=%d\n",a); }
main() { int a=1,b=2,c=3,x,y; y=(x=a+b,b+c,x+c); printf("x=%d,y=%d\n",x,y); }
时间: 2024-12-09 15:04:40