一个for语句惹的祸,谁来解惑
#include<stdio.h>int main(){
void copy_string(char *from,char *to);
char *a="I am a student.";
char *b="You are a teacher.";
int i;
printf("string a is:%s\nstring b is:%s\n",a,b);
copy_string(a,b);
printf("copy string a to string b!\n");
printf("string a is:%s\nstring b is:%s\n",a,b);
putchar('\n');
return 0;}
void copy_string(char *from,char *to)
{
for(;(*to++=*from++)!=0;);
}
不懂copy_string函数中那条for语句的意思也就是运行原理,哪位给解释详细点,感谢!