填空题
以下程序的输出结果是______。
#include<stdio.h>
#include<string.h>
char*fun(char*t)
char*p=t;
return(p+strlen(t)/2);
main()
char*str="abcdefgh";
str=fun(str);
puts(str);
【参考答案】
efgh
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序的功能是从键盘输入若干学生的成绩,并输出最高成绩和最低成绩,当输入负数时结束。请填空。 #include <stdio.h> main() float x,amax,amin; scanf( %f ,&x); amax=x; amin=x; while( ) if(x>amax)amax=x; else if( ) amin=x; scanf( %f ,&x); printf( n amax=%f n amin=%f n ,amax,amin);
点击查看答案&解析
填空题
以下程序的输出结果是______。 #include main() int a[5]=2,4,6,8,10, *p; p=a; p++; printf( %d ,*p);
点击查看答案
相关试题
在使用报表向导创建报表时,如果数据源包括...
以下程序的功能是:将值为三位正整数的变量...