![](https://lstatic.shangxueba.com/jiandati/pc/images/pc_jdt_tittleico.png)
以下程序:#include<stdio.h>main(){char str[10];scanf("%s",&str);printf("%s\n",str);}运
以下程序: #include<stdio.h> main() {char str[10]; scanf("%s",&str); printf("%s\n",str); } 运行上面的程序,输入字符串how are you,则程序的执行结果是()。
A.how
B.how are you
C.h
D.howareyou
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_panel_vip.png)
以下程序: #include<stdio.h> main() {char str[10]; scanf("%s",&str); printf("%s\n",str); } 运行上面的程序,输入字符串how are you,则程序的执行结果是()。
A.how
B.how are you
C.h
D.howareyou
有以下程序: #include < stdio. h > main() { ehar str[ ] [10] = { "China" ," Beijing" } , * p = str[o]; printf("% s \n", p + 10); }程序运行后的输出结果是()。
A.China
B.Beijing
C.ng
D.ing
有以下程序:#include <stdio. h>main() { int a[]={1,2,3,4,5,6,7,8,9,10,11,12,},*p=a+5,*q=NULL; *q=*(p+5); printf("%d%d\n",*p,*q);程序运行后的输出结果是()。
A.运行后报错觉
B.6 6
C.6 11
D.5 10
有以下程序: #include <stdio. h> main () { inti=0.s=0; for(;;) if(i = = 3 ‖ i = = 5 ) continue; if (i ==6) break; i++; s+ =i; } printf(" % d \n" ,s);程序运行后的输出结果是()。
A.10
B.13
C.21
D.程序进入列循环
有以下程序: #include <stdio. h> main () { char a :'a',b; printf("% c," , + + a); printf("%c \n" ,b =a++); }程序运行后的输出结果是()。
A.b,b
B.b,c
C.a,b
D.a,c
有以下程序:#include <stdio. h>main(){ int a[ ] = { 1,2,3,4,5,6,7,8,9,0} , * p; for(p =a;p<a+10;p++) printf("%d," , *p); }程序运行后的输出结果是()。
A.1,2,3,4,5,6,7,8,9,0,
B.2,3,4,5,6,7,8,9,10,1,
C.0,1,2,3,4,5,6,7,8,9,
D.1,1,1,1,1,1,1,1,1,1,
有以下程序: #include < stdio. h > main () { char s[] = "ABCD", * p; for(p=s+1;p<s+4;p++) pfintf(" % s \n" ,p); }
A.ABCD BCD CD D
B.A B C
C.B C D
D.BCD CD D
有以下程序: #include <stdio. h > main() { int m =3,n =4,x; x= -m++; x=x+8/++n; prinff(" % d \n" ,x); } 程序运行后的输出结果是()。
A.3
B.5
C.-1
D.-2
有以下程序: #include <stdio. h> int f(int a) return a% 2; } main() int s[8] = {1,3,5,2,4,6} ,i,d =0; for (i=0;f(s[i]);i++) d+ =s[i]; prinff("% d \n", d); 程序运行后的输出的结果是().
A.9
B.11
C.19
D.21
运行以下程序后,如果从键盘上输入china#<回车>,则输了结果为______。 #include <stdio. h> main () { int v1=0, v2=0; char ch ; while ((ch=getchar()) !='#') switch (ch) { case 'a': case 'h': default:vi++; case '0':v2++; } printf ("%d, %d\n",v1,v2); }
A.2,0
B.5,0
C.5,5
D.2,5
B、0.500000
C、1. 000000
D、0.250000
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!