下列关于单目运算符++、–的叙述中正确的是
#include
int main()
{
int a=1, b=2;
a=a+b;
b=a-b;
a=a-b;
printf("%d,%d\n", a, b );
return 0;
}
#include
int main()
{
int m=3,n=4,x;
x=m++;
++n;
x=x+8/n;
printf("%d,%d\n",x,m);
return 0;
}
#include
int main()
{
int a = 2, b = 3 ;
float x = 3.5, y = 2.5 ;
printf("%f", (float)(a+b) / 2 + (int)x % (int)y) ;
return 0;
}
#include
int main()
{
int a = 12, b = 3;
float x = 18.5, y = 4.5;
printf("%f\n", (float)(a * b) / 2);
printf("%d\n", (int)x %(int)y);
return 0;
}
int a=0;
float b=1.25;
char c='A';
#define d 2