单项选择题

下面程序的输出结果是( )。 #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
相关试题
  • k!=i&&k!=j
  • 以下程序运行后输出的结果是______。...
  • 以下程序的功能是:借助指针变量找出数组元...
  • 设有定义:FILE *fw;,请将以下打开文件...
  • 设有如下程序: main() int n1,n2...