#include
#include
void copystr(char*,char*);
main()
{
char *str1="YOU ARE COPYING";
char str2[20];
clrscr();
copystr(str2,str1);
printf("\n%s",str2);
getch();
}
void copystr(char *dest,char *src)
{
while(*src!='\0')
{
*dest++=*src++;
}
*dest='\0';
return;
}
/*******************************************************************
OUTPUT
*******************************************************************
YOU ARE COPYING
*/
This comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by the author.
ReplyDelete