19 lines
329 B
C
19 lines
329 B
C
|
#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;
|
||
|
}
|