填空题
下列程序的字符串中各单词之间有一个空格,则程序的输出结果是
【17】
。 #include <stdio.h> #include <string.h> main() { char str1[]="How do you do", *p1=str1; strcpy(str1+strlen(str1)/2,"es she"); printf("%s\n",p1); }
【参考答案】
How does she
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
执行以下程序段后,s的值为 【15】 。static char ch[]= 600 ;int a,s=0;for(a=0;ch[a]>=’0’&&ch[a]<=’9’;a++)s=10*s+ch[a]-’0’;
点击查看答案&解析
填空题
以下程序的输出结果是 【14】 。#include <stdio.h>#define MAX(x,y) (x)>(y) (x):(y)main(){ int a=5,b=2,c=3,d=3,t;t = MAX(a+b,c+d)*10;printf( %d n ,1);}
点击查看答案&解析
相关试题
在对文件进行操作的过程中,若要求文件的位...
以下函数inverse的功能是使一个字符串按逆...