Dain1234 / Design-and-analysis-algorithm

0 stars 0 forks source link

copy string #15

Open Dain1234 opened 2 years ago

Dain1234 commented 2 years ago

image

Dain1234 commented 2 years ago

include

include

include

int main() { char str1[20], str2[20]; printf("Enter the string: "); gets(str1); printf("\nString 1 = %s", str1); strcpy(str2, str1); printf("\nString 2 = %s", str2); getch(); return 0; }