单项选择题
下面程序的输出结果是( )。 #include<stdio.h> try1() static int x=3; x++; return(x), void main() int i, x; x=try1(); printf("%d\n", x);
A.3
B.4
C.5
D.6
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序: #include <stdio.h> void fun(char *a, char *b) while(*a_='*')a++; while(*b=*a)b++;a++; main() char*s= *****a*b*** ,t[80]; fun(s,t); puts(t); 程序的运行结果是( )。
A.*****a*b
B.a*b
C.a*b****
D.ab
点击查看答案
单项选择题
下面程序的输出结果是( )。 #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
点击查看答案
相关试题
有以下程序: struct STU charname[1...
有以下程序: void sort(int a[],in...
有以下程序: #include <stdio.h> v...