#include<stdio.h>
int main()
{ void copy( char *from, char *to);
char * a=" i am a teacher";
char b=" i am a student";
printf("%s\n%s\n",a,b);
printf(" copy:\n");
copy(a,b);
printf("%s\n%s",a,b);
return 0;
}
void copy( char from, char to)
{ for(; from!='\0'; from++, to++)
{ to= from;}
- to='\0';}