Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main()
- {
- char Str1[100], Str2[100];
- int i, j;
- printf("Please Enter the First String : ");
- gets(Str1);
- printf("Please Enter the Second String : ");
- gets(Str2);
- i = 0;
- while( Str1[i]!='\0')
- {
- i++;
- }
- j = 0;
- while( Str2[j]!='\0')
- {
- Str1[i] = Str2[j];
- i++;
- j++;
- }
- Str1[i] = '\0';
- printf("String after the Concatenate = %s\n", Str1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement