#include#include #include void main() { char str1[100]; char str2[100]; char str3[100]; int len; printf("\nEnter the String 1 : "); gets(str1); printf("\nEnter the String 2 : "); gets(str2); strcpy(str3,str1); strcat(str3,str2); printf("\nConcated String : %s",str3); getch(); }
Explain me ?
- Copy “str1″ into “str3″.
- Then Concat “str2″ to “str3″ , after concating result will be stored in “str3″
- strcat,strcpy functions are included in Header File : string.h
Functions Required :
No comments:
Post a Comment