有以下程序: #include<stdio.h> main { char s[]="rstuv"; printf("%c\n",*s+2); }
有以下程序: #include<stdio.h> main { char s[]="rstuv"; printf("%c\n",*s+2); } 程序运行后的输出结果是()。
A.tuv
B.字符t的ASCIl码值
C.t
D.出错
有以下程序: #include<stdio.h> main { char s[]="rstuv"; printf("%c\n",*s+2); } 程序运行后的输出结果是()。
A.tuv
B.字符t的ASCIl码值
C.t
D.出错
第3题
有以下程序 #include <stdio.h> int fun(int a, int b) { if(b==0) return a; else return(fun(-a,-b)); } main() { printf("%d\n",fun(4,2)); } 程序的运行结果是______。
A.1
B.2
C.3
D.4
第4题
有以下程序: include<stclio.h> main() { char c; while((c=getchar())!=?)putchar(--c); } 程序运行时,如果从键盘输入:Y?N?<回车>,则输出结果为【 】。
第5题
有以下程序
#include<stdio.h>
#include<string.h>
main()
{char x[]=“STRING”;
x[0]=0;x[1]=’\0’;x[2]=’0’;
printf(”%d%d\n”,sizeof(x),strlen(x));
}
程序运行后的输出结果是()。
A.6 1
B.7 0
C.6 3
D.7 1
第6题
有以下程序 #include<stdio.h> main {int y=9; for(;y>0;y--) if(y%3==0)printf("%d",--y); } 程序的运行结果是()。
A.741
B.963
C.852
D.875421
第7题
A.abcdefg
B.bcdefgh$
C.bcdefgh$$
D.bcdefgh
第8题
A.12
B.4
C.1
D.0
第9题
A.1,0,1,0
B.1,1,0,1
C.1,0,0,1
D.1,1,1,0
第10题
A.7,4,2
B.8,7,5,2
C.9,7,6,4
D.8,5,4,2
第11题
有以下程序: #include<stdio.b> void fun(char c) { if(c>X)fun(c-1): printf("%C",c); } traia() { fun(z);} 程序运行后的输出结果是()
A.xyz
B.wxyz
C.xzy
D.zvx