- 注册时间
- 2006-10-11
- 最后登录
- 1970-1-1
|
#include<stdio.h>
void copy(char *from,char *to)
{
for(;*from!='\0';from++,to++)
*to=*from;
*to='\0';
}
void main()
{
char *a="i am a teacher";
char *b="you are a student";
printf("\na=%s,b=%s\n",a,b);
printf("copy string is :");
copy(a,b);
printf("\n a=%s,b=%s\n",a,b);
}
请问第2个PRINTF为什么执行不到 |
|