11问答网
所有问题
The result of the following program is()。 main() {int a=7,b=5; printf("%d\n",b=b/a); } 结果i多少
如题所述
举报该问题
推荐答案 2012-06-18
0,计算结果被强制int化了,小数部分被舍弃
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://11.wendadaohang.com/zd/S8MS7SFSS.html
其他回答
第1个回答 2012-06-18
整数0
第2个回答 2012-06-18
0本回答被提问者采纳
相似回答
main( )
{ int
a=7,b=5;
printf(
"%d\n",b=b/a
);
} main( ) { int...
答:
输出结果是0, 因为
,b=
b/a,是赋值表达式,返回的是左值,也就是b的值(此时,b为0,因为,
int
型变量相除时,是整除。
大家正在搜
as the following
do the following
be the result of
at the result of
by the following
for the result
following with
The result is
the result of用法
相关问题
main( ) { int a=7,b=5; printf(...
main() {int a=5,b=4,c=3,d; d=(...
main() { int a=5,b=4,c=6,d; pr...
int a,b; void fun(){a=100;b=20...
分析以下程序的输出结果是().main() {int a=5...
有如下程序: main() {int a=5,b=-3,c=...
main() { int a=5,b=4,c=3,d=2; ...
#include <stdio.h> main() {int...