读程序,写出程序执行结果
#include <stdio.h>
int m=13;
int fun(int x,int y)
{ int m=3;
return(x*y-m);
}
void main()
{ int a=7, b=5;
printf("%d\n", fun(a,b)/m);
}
结果为2,首先fun(7,5)=7*5-3=32,然后32/13是整数运算,求的是商,为2。所以结果是2。
望采纳。。。。。。
望采纳。。。。。。
温馨提示:答案为网友推荐,仅供参考
第1个回答 2018-11-21
最后输出结果是32 ÷ 13 =2.5