source file name: strcopy.C

 #include <string.h>

#include<stdio.h>

int main()

 {

    char str1[100], str2[100], i;

  //clrscr();

    printf("Enter first string : ");

    gets(str1);

    for (i = 0; str1[i] != '\0'; ++i) 

  {

        str2[i] = str1[i];

    }

    str2[i] = '\0';

    printf("String second: %s", str2);

//  getch();

return 0;

}

output: