填空题
现有两个C程序文件T18.c和myfun.c同在TC系统目录(文件夹)下,其中T18.c文件如下:
#include <stdio.h>
#include "myfun.c"
main()
fun0(); printf("\n”);
myfun.c文件如下:
void fun()
char s[80],c; int n=0;
while((c=getchar())!=’\n’) s[n++]=c;
n--;
while(n%2! =0) printf("%c",s[n--]);
当编译链接通过后,运行程序T18时,输入Thank!则输出结果是:______。
【参考答案】
!
热门
试题
填空题
下面程序的运行结果是:______。 fun(int t[],int n) int i,m, if(n==1) return t[0]; else if(n%3==0) m=fun(t,n-1); return m; main() int a[]=11,4,6,3,8,2,3,5,9,2; printf( %d n ,fun(a,10));