填空题
下面程序的运行结果是
【17】
。
int f( int a[], int n)
if(n>1) return a[0]+f(&a[1],n-1);
else return a[0];
]
main ()
int aa[3]=1,2,3),s;
s=f(&aa[0],3); printf("%d\n",s);
【参考答案】
F
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序的运行结果是 【19】 。 #include<string.h> typedef struct student char name[10]; long sno; float score; STU; main() STU a= Zhangsan ,2001,95,b= Shangxian ,2002,90, c= Anhua ,2003,95,d,*p=&d; d=a; if(strcmp(a.name,b.name)>0) d=b; if(strcmp(c.name,d.name)>0) d=c; printf( %1d%s n ,d.sno,p->name);
点击查看答案&解析
填空题
以下sstrcpy()函数实现字符串复制,即将t所指字符串复制到s所指向内存空间中,形成一个新的字符串s。清填空。 void sstrcpy(char *s,char *t) while(*s++= 【15】 ); main() char str1[100],str2[]= abcdefgh ; strcpy(str1,str2); printf(’%s n ,str1);
点击查看答案&解析
相关试题
以下sum函数的功能是计算下列级数之和。 ...