若有以下程序 #include <stdio.h> int main() { int a = 0, b = 0, c = 0, d; c = (a += b,,b += a); /*第5行*/ d = c;; /*第6行*/ ; /*第7行*/ ;printf("%d, %d, %d\n", a, b,c); /*第8行*/ return 0; } 编译时出现错误,你认为出错的是()
A.第5行
B.第6行
C.第7行
D.第8行
A.第5行
B.第6行
C.第7行
D.第8行
第1题
A.0,4,5
B.4,4,5
C.4,4,4
D.0,0,0
第2题
#include <stdio.h>
main( )
{ int a=0,b=0,c=0;
c=(a=a-5); (a=b, b+=4);
printf(”%d,%d,%d\n”,a,b,c);
}
程序运行后的输出结果是
A) 0,4,5
B) 4,4,5
C) 4,4,4
D) 0,0,0
第3题
#include <stdio.h>
void fun(int *a,int *b)
{ int *c;
c=a;a=b;b=c;
}
main()
{ int x=3,y=5,*p=&x,*q=&y;
fun(p,q); printf("%d,%d,",*p,*q);
fun(&x,&y);printf("%d,%d\n",*p,*q);
}
程序运行后输出的结果是
A)3,5,5,3
B)3,5,3,5
C)5,3,3,5
D)5,3,5,3
第4题
A.ABE
B.BDI
C.BCF
D.BCD
第5题
A.1,3
B.0,2
C.0,3
D.1,2
第6题
include<stdiO.h>
main( )
{int a=1,b=0;
printf("%d,",b=a+b);
printf("%d\n",a=2+b); ’
}
程序运行后的输出结果是( )。
A.0,0
B.1,3
C.3,2
D.1,2
第7题
#include<stdio.h>
main( )
{ int a=1,b=0;
if(--a)b++;
else if(a==0)b+=2;
else b+=3:
print[("%d\n",b);
}
程序运行后的输出结果是( )。
A.0
B.1
C.2
D.3
第8题
#include<stdio.h>
main()
{ int a=1,b=0;
if(--a)b++;
else if(a==0) b+=2;
else b+=3:
printf("%d\n",b);
}
程序运行后的输出结果是
A.0
B.1
C.2
D.3
第9题
A.a=1,b=0
B.a=2,b=2
C.a=1,b=1
D.a=2,b=1
第10题
A.a=1,b=0
B.a=2,b=2
C.a=1,b=1
D.a=2,b=1
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!