c copy 2 strings\

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

int main() {
   char str1[100], str2[100];
   printf("Enter the first string: ");
   gets(str1);
   printf("Enter the second string: ");
   gets(str2);
   strcpy(str1, str2);
   printf("The copied string is: %s", str1);
   return 0;
}