19 lines
329 B
C
Raw Permalink Normal View History

2025-01-07 21:10:07 +01:00
#include <stdio.h>
#include <string.h>
int main() {
char str1[20] = "C programming";
char str2[20];
char str3[30] = "Good Good";
char str4[30];
/* copying str1 to str2*/
/* copying str3 to str4*/
strcpy(str2, str1);
strcpy(str4, str3);
puts(str2); /* C programming*/
puts(str4);/*Good Good*/
return 0;
}