运算顺序是什么
#include
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.不应该是1.5吗#include
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.不应该是1.5吗2016-07-02
举报