C library function strcpy()




C library function strcpy()

#include <stdio.h>
#include <stdlib.h>

int main()
{
    char str1[10]= "awesome";
    char str2[10];
    char str3[10];

    strcpy(str2, str1);
    strcpy(str3, "well");
    puts(str2);
    puts(str3);

    return 0;
}

Output

awesome
well