1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #include<stdio.h> #include<conio.h> void main() { char string1[80],string2[80]; clrscr(); printf("ENTER FIRST STRING\n"); scanf("%s",&string1); printf("ENTER SECOND STRING\n"); scanf("%s",&string2); strcat(string1,string2); printf("BOTH STRINGS JOINED TOGETHER IS %s",string1); getch(); } |
No comments:
Post a Comment