谁能告诉我为什么这个老是调试不好呢?
#include<stdio.h>char swap(char *words1,char *words2);
main()
{
char *arr,*arry;
char c[]="aChina";
char put[5];
for(arr=c,arry=put;arr<(c+5);arr++,arry++){
swap(arr,arry);
printf("%s\n",*arry);
}
}
char swap(char *words1,char *words2)
{
*words2=*words1+4;
return *words2;
}