填空题
有两个C程序文件T18.c和myfun.c同在VC系统目录(文件夹)下,其中T18.c文件如下:
#include <stdio.h>
#include "myfun.c"
main( )
fun(); prinff("\n");
myfun.c文件如下:
void fun( )
char s[80],c;int n=0;
while((c=getchar())! :’\n’) s[n++] =c;
n--;
while ( n>=0) prinff("%c" , s [n--] );
当编译连接通过后,运行程序T18时,输入"Thank!”,则输出结果是 【13】 。
【参考答案】
! knahT
热门
试题
填空题
下面程序的运行结果是 【12】 。 #include <stdio.h> fun(int t[],int n) int i,m; if(n==1) return t[0]; else if(n>=2) | 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));