单项选择题
下面程序的输出结果是( )。
#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()
static char p[]="1234567";
fun(p,strlen(p));
printf("%s",p);
A.7654321
B.1717171
C.7171717
D.1711717
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序: fun (int a,int b) a++;b++; if(a>b) return(a), else return(b); void main() int x=3, y=8, z=6,r; r=fun(fun(x,y++),2*z); printf( %d n ,r); 程序运行后输出的结果是( )。
A.13
B.6
C.8
D.12
点击查看答案
单项选择题
有以下程序: #include <stdio.h> struct S int a,b;data[2]=10,100,20,200; main() struct S p=data[1]; printf( %d n ,++(p.a)); 程序运行后输出的结果是( )。
A.10
B.11
C.20
D.21
点击查看答案
相关试题
有以下程序: struct STU charname[1...
有以下程序: void sort(int a[],in...
有以下程序: #include <stdio.h> v...
下面程序的输出结果是( )。 #include...
有以下程序: #include <stdio.h> v...