若有以下程序 #include <stdio.h> main() {
A.第4行
B.第5行
C.第6行
D.第7行
A.第4行
B.第5行
C.第6行
D.第7行
第1题
A.6566456
B.66656
C.66666
D.6666656
第2题
第3题
第4题
A、第5行
B、第6行
C、第7行
D、第8行
第5题
include<stdio.h>
main
{ short C=124;
C=C_;
printf("%d\n",c);
}
若要使程序的运行结果为248,应在下划线处填入的是( )。
A.>>2
B.|248
C.&0248
D.<<1
第6题
A.>>2
B.|248
C.&0248
D.<<1
第7题
#include <stdio.h>
int a[]={2,4,6,8};
main()
{ int i;
int *p=a;
for(i=0;i<4;i++)a[i]=*p;
printf("%d\n",a[2]);}
上面程序的输出结果是
A.6
B.8
C.4
D.2
第8题
#include <stdio.h>
main()
{ int x;
scanf("%d",&x);
if(x>15) printf("%d",x-5);
if(x>10) printf("%d",x);
if(x>5) printf("%d\n",x+5);
}
若程序运行时从键盘输入12<回车>,则输出结果为 【7】 。
第9题
#include <stdio.h>
main()
{ int s;
scanf("%d",&s);
while(s>0)
{ switch(s)
{ case1:printf("%d",s+5);
case2:printf("%d",s+4); break;
case3:printf("%d",s+3);
default:printf("%d",s+1);break;
}
scanf("%d",&s);
}
}
运行时,若输入1 2 3 4 5 0<回车>,则输出结果是
A)6566456
B)66656
C)66666
D)6666656
第10题
include<stdio.h>
main( )
{char a[3O],b[30];
scanf("%S",a);
gets(b);
printf("%s\n%s\\n",a,b);
}
程序运行时若输入:
how are you? I am fine<回车>
则输出结果是( )。
A.how are you? I am fine
B.how are you?I am fine
C.how are you?I am fine
D.how are you?
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!