填空题

下列程序的运行结果是 【16】 。
#include <string.h>
char *ss(char *s)
return s+strlen(s)/2;
main()
char *p,*str="abcdefgh";
p=ss(str); printf("%\n",p);

【参考答案】

efgh
<上一题 目录 下一题>
热门 试题

填空题
以下程序中给指针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]);
填空题
若有如下程序: main() int s=8,a=3,b=5,c=6; if(a>b) s=a; a=b; b=s; if(a>c) s=a; a=c;b=s); if(b>c) s=b; b=c;c=s; printf( %d,%d,%d n ,a,b,c); 则程序运行后的输出结果是 【11】 。
相关试题
  • 以下sum函数的功能是计算下列级数之和。 ...
  • 下面程序的运行结果是 【17】 。 int...
  • 以下程序的运行结果是 【19】 。 #in...
  • 以下sstrcpy()函数实现字符串复制,即将t...