填空题
以下函数inverse的功能是使一个字符串按逆序存放,请填空。
inverse(char str[])
char m;
int i,j;
for(i=0,j=strlen(str);i<strlen(str)/2;
【18】
,j--)
m=str[i];
str[i]=
【19】
;
【20】
;
【参考答案】
i++或++i str[j-1] str[j-1]=m
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
在对文件进行操作的过程中,若要求文件的位置指针重新指向文件的开头,应当调用的函数是 【16】 函数。
点击查看答案&解析
填空题
下列程序的字符串中各单词之间有一个空格,则程序的输出结果是 【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);
点击查看答案&解析
相关试题
执行下面程序中的输出语句后,a的值是( ...
若有以下说明和语句,则四个选项中是对c数...
有以下程序: #include <stdio.h> u...
请读程序: #include <stdio.h> #i...
请读程序: #include <stdio.h> int...