Function Strcpy

#include<stdio.h>
main()
{
char blogsource[50],blogtarget[50];
printf("Enter a string.\n");
scanf("%s",blogsource);
strcpy(blogtarget,blogsource);
printf("Original String - %s\nCopied String - %s",blogsource,blogtarget);
}

 

OUTPUT [Click to enlarge]:

Strcpy

 

Leave a Reply

Your email address will not be published.