Which of the following statements is True?
A.At one of the balls, Clinton appeared shortly and then left in a quiet way to do his work.
B.Clinton was certainly a combination of both Nixon and Kennedy.
C.Clinton said at the Party that he was going to close his mouth and Work harder.
D.When Olmos quoted Lincoln, Clinton repeated the words as Olmos spoke them.
第1题
有以下程序: #include <stdio.h> main() { char c1,c2,c3,c4,c5,c6; scanf(%c%c%c%c,&c1,&c2,&c3,&c4); c5=getchar(); c6=getchar(); putchar(c1); putchar(c2); printf(%c%c\n,c5,c6); } 程序运行后,若从键盘输入(从第1列开始) 123<回车> 45678<回车> 则输出结果是()。
A.1267
B.1256
C.1278
D.1245
第2题
有以下程序:
#include<stdio.h>
main()
{ char cl='1',c2='2';
cl=getchar();c2=getchar();putchar(c1);putcha:
(c2);
}
当程序运行时输入a<回车>后,下列叙述中正确的是()。
A.变量c1被赋予字符a,c2被赋予回车符
B.程序将等待用户输入第2个字符
C.变量c1被赋予字符a,c2中仍是原有字符2
D.变量c1被赋予字符a,c2中将无确定值
第3题
有以下程序#include<stdio. h>main(){ char c1='1',c2='2'; c1=getchar(); c2=getchar(); putchar(c1); putchar(c2);} 当运行时输入:a<回车> 后,以下叙述正确的是
A.变量c1被赋予字符a,c2被赋予回车符
B.程序将等待用户输入第2个字符
C.变量c1被赋予字符a,c2中仍是原有字符2
D.变量c1被赋予字符a,c2中将无确定值
第4题
67)有以下程序:
#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>#include <stdio.h>
void main()void main()void main()void main()void main()void main()void main()void main()void main()void main()void main()
{int x=1,y=0;int x=1,y=0;int x=1,y=0;int x=1,y=0;int x=1,y=0;int x=1,y=0;int x=1,y=0;int x=1,y=0;int x=1,y=0;int x=1,y=0;int x=1,y=0;int x=1,y=0;
if(!x)y++;if(!x)y++;if(!x)y++;if(!x)y++;if(!x)y++;if(!x)y++;if(!x)y++;if(!x)y++;if(!x)y++;if(!x)y++;
else if(x==0)else if(x==0)else if(x==0)else if(x==0)else if(x==0)else if(x==0)else if(x==0)else if(x==0)else if(x==0)else if(x==0)else if(x==0)else if(x==0)else if(x==0)
if(x)y+=2;if(x)y+=2;if(x)y+=2;if(x)y+=2;if(x)y+=2;if(x)y+=2;if(x)y+=2;if(x)y+=2;if(x)y+=2;if(x)y+=2;
else y+=3;else y+=3;else y+=3;else y+=3;else y+=3;else y+=3;else y+=3;else y+=3;else y+=3;else y+=3;
printf("%dprintf("%dprintf("%dprintf("%dprintf("%dprintf("%dprintf("%dprintf("%dprintf("%dprintf("%d\n",y);n",y);n",y);n",y);n",y);n",y);
}
程序运行后的输出结果是()。
A)3 B3 B3 B)2 C2 C2 C)1 D1 D1 D)0
第5题
下列程序运行后的输出结果是______。
#include<stdio.h>
{
main()
(char c1='1',c2='5';
printf("%3c\t",c2++);
printf("%d\n",c2-c1);
}
第6题
有以下程序: #include <stdio.h> void fun(char *a, char *b) { a=b; (*a)++;} main() { char c1='A',c2='a',*p1,*p2; p1=&c1; P2=&c2; fun(p1,p2); printf("%c%c\n",c1,c2); } 程序运行后的输出结果是()。
A.Ab
B.aa
C.Aa
D.Bb
第7题
(8)有以下程序(说明:字符0的ASCII码值为48)
#include <stdio.h>
main()
{ char c1,c2;
scanf("%d",&c1);
c2=c1+9;
printf("%c%c\n",c1,c2);
}
若程序运行时从键盘输入48<回车>,则输出结果为 【8】 。
第8题
有以下程序
include<stdio.h>
main()
{char cl,c2;
c1=A+8-4
c2=A+8-5;
printf("%C,%d\n",cl,c2);
}
已知字母A的ASCIl码为65,程序运行后的输出结果是()。
A.E,69
B.D,69
C.E,D
D.输出无定值
第9题
有以下程序 #include<stdio.h> main() {char cl,c2; c1=A+8-4 c2=A+8-5; printf("%C,%d\n",cl,c2); } 已知字母A的ASCIl码为65,程序运行后的输出结果是()。
A.E,69
B.D,69
C.E,D
D.输出无定值
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!