copy string

#include <stdio.h>
#include <string.h>

int main()
{
   char sou[1000], desti[1000];

   printf("Input the string to be copied \n");
   gets(sou);

   strcpy(desti, sou);

   printf(" The Source string: %s\n", sou);
   printf("The Destination string: %s\n", desti);

   return 0;
}

OUTPUT : -







For Other Programs Visit The WebSite:-   https://www.techapurba.com/

Follow Me On Social Media :-

For tech related videos visit my other website :- https://apurbatechinfo.blogspot.com/

Post a Comment

0 Comments