读程序,写出程序执行结果

读程序,写出程序执行结果
#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

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网