fun(char *w,int n) { char t,*s1,*s2; s1=w; s2=w+n-1; while(s1
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/18 03:49:19
x)K+HH,R*+QTV hBm94-5V(I(6I*ҧ;jYOO.x>47i{f9XeMyּy6<];eOvlz05F&f&<_d'=Ɏ';N}ھ
:@|`3S0
"<;P( `6
fun(char *w,int n) { char t,*s1,*s2; s1=w; s2=w+n-1; while(s1
fun(char *w,int n) { char t,*s1,*s2; s1=w; s2=w+n-1; while(s1
fun(char *w,int n) { char t,*s1,*s2; s1=w; s2=w+n-1; while(s1
按照你的代码输出:1711717
如果想实现字符串倒转1234567→7654321,可以修改一下fun函数,如下:
void fun(char *w,int n)
{
char t,*s1,*s2;
s1=w; s2=w+n-1;
while(s1