这个字符型指针运算问题 程序 大家调试得出来吗?!
程序代码:
#include<stdio.h>
#include<string.h>
fun(char *w,int n)
{char t,*s1,*s2;
s1=w;s2=w+n-1;
while(s1<s2)
{t=*s1++;*s1=*s2--;*s2=t;}
}
main()
{char *p;
p="1234567";
fun(p,strlen(p));
puts(p);
}
我的调试不出啦
答案是1711717
显示如下对话框
[ 本帖最后由 Candykf 于 2013-3-14 23:08 编辑 ]










