填空题
下面程序的运行结果是
【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
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下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);
点击查看答案&解析
填空题
以下程序中给指针p分配3个double型动态内存单元,请填空。 # include <stdio.h> main () double *p; p=(double *)malloc(( 【18】 ); p[0]=1.5;p[1]=2.5;p[2]=3.5; printf( %f%f%f n ,p[0],p[1],p[2]);
点击查看答案&解析
相关试题
以下程序的运行结果是 【19】 。 #in...
以下sum函数的功能是计算下列级数之和。 ...