A.01000011
B.01000100
C.01000101
D.01000110
第1题
A.1313
B.2234
C.3234
D.1234
第2题
有以下程序
inculde
inculde
void Fun(char*str)
{ char temp;int n,I;
n=strlen(str);
temp=str[n-1];
For(i=n-1;i>0;i--) str[i]=str[i-1];
str[0]=temp;
}
main()
{ char s[50];
ScanF(“%s”,s);Fun(s);printF(“%s\n”,s);}
程序运行后输入:aBcDeF<回车>,则输出结果是【 】
第3题
有以下程序
inculde <stdio.h>
inculde <string.h>
void Fun(char*str)
{ char temp;int n,I;
n=strlen(str);
temp=str[n-1];
For(i=n-1;i>0;i--) str[i]=str[i-1];
str[0]=temp;
}
main()
{ char s[50];
ScanF(“%s”,s);Fun(s);printF(“%s\n”,s);}
程序运行后输入:aBcDeF<回车>,则输出结果是【 】
第4题
有以下程序
#inculde <stdio.h>
#deFine SUB(a) (a) (a)
main()
{ int a=2,B=3,c=5,d;
d=SUB(a+B)*c;
printF(”%d\n”,d);
}
程序运行后的输山结果是
A.0
B.-12
C.-20
D.10
第5题
有以下程序
#inculde <stdio.h>
int Fun()
{ ststic int x=1;
x*=2;return x;
}
main ()
{ int i,s=1;
For(i=1;I<=2,I + +) s =Fun();
printF(“%d\n”,s);
}
程序运行后的输出结果是
A.0
B.1
C.4
D.8
第6题
A.0
B.1
C.4
D.8
第7题
A.0
B.-12
C.-20
D.10
第8题
A.0
B.-12
C.-20
D.10
第9题
有以下程序: #include<stdio.h> #define N 8 void fun(int*x,int i) {*x=*(x+i);) main() { int a[N]={1,2,3,4,5,6,7,8},i; fun(a,2); for(i=0;i<N/2;i++) {printf("Ha",a[i]);} printf("\n"); } 程序运行后的输出结果是()。
A.1313
B.2234
C.3234
D.1234
第10题
有以下程序: define N 20 fun(int a[],int n,int m) { int i,j; for(i=m;i>=nj i一一)a[i+1]=a[i]; } void main() { int i,a[N]={1,2,3,4,5,6,7,8,9,10}; fun(a,2,9); for(i=0; i<5;i++)printf(“%d”,a[i]); } 程序运行后的输出结果是()。
A.10234
B.12344
C.12334
D.12234
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!