单项选择题
以下程序的输出结果是______。
#include<stdio.h>
#include<string.h>
fun(char*w,int n)
char t,*s1,*s2;
s1=w;s2=w+n-1;
while(s1<s2)
t=*s1++;
*s1=*s2-;
*s2=t;
main()
char*p;
p="1234567";
fun(p,strlen(p));
puts(p);
A.1234567
B.7654321
C.1711717
D.7177171
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序: #include<stdio.h> main() char c[6]; int i=0; for(;i<6;c[i]=getchar(),i++); for(i=0;i<6; i++)putchar(c[i]); printf( n ); 如果从键盘上输入: ab<回车> c<回车> def<回车> 则输出结果为______。
A.a
b
c
d
e
f
B.a
b
c
d
C.ab
c
d
D.abcdef
点击查看答案&解析
单项选择题
以下程序 #include<stdio.h> #include<string.h> main() char*p1= abc ,*p2= ABC ,str[50]= xyz , strcpy(str+2,strcat(p1,p2)); printf( %s n ,str); 的输出是______。
A.xyzabcABC
B.zabcABC
C.yzabcABC
D.xyabcABC
点击查看答案&解析
相关试题
请读程序: #include<stdio.h> main...
下面程序的输出是______。 main()...
若有程序: fun(int a,int b) stati...
有以下程序,程序运行后的输出结果是___...