填空题
以下程序运行后的输出结果是
。
# include<string.h>
void fun(char *s,int p,int k)
int i;
for(i=p;i<k-1;i++)s[i]=s[i+2];
main()
char s[]="abcdefg";
fun(s,3,strlen(s));puts(s);
【参考答案】
abcfg
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序运行后的输出结果是______。 #include char*ss(char*s) char*p,t; P=s+1;t=*s; while(*p) *(p-1)=*p;p++; *(p-1)=t; return s; main() char*p,str[10]= abcdefgh ; p=ss(str); printf( %s n ,p);
点击查看答案&解析
填空题
以下程序的输出结果是 。 float fun(int x,int y) return(x+y); main() int a=2,b=5,c=8; printf( %3.0f n ,fun((int)fun(a+c,b),a-c));
点击查看答案&解析
相关试题
常见的软件开发方法有结构化方法和面向对象...
设有下列程序:#include<stdio.h>#inc...
设有下列程序: #include<stdio.h> ...