运算符的运算的先后顺序?
#include <stdio.h>
int main()
{
int a,b,c,d;
double result;
a = 1;
b = 2;
c = 3;
d = 4;
result = a * b + c / d; //在这里体验哦~
printf("%f\n", result);
return 0;
}
输出结果为2.000000这是怎么运算的?
#include <stdio.h>
int main()
{
int a,b,c,d;
double result;
a = 1;
b = 2;
c = 3;
d = 4;
result = a * b + c / d; //在这里体验哦~
printf("%f\n", result);
return 0;
}
输出结果为2.000000这是怎么运算的?
2015-03-23
举报