Created
August 11, 2013 07:12
-
-
Save kylelk/6203830 to your computer and use it in GitHub Desktop.
join two strings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
int main() | |
{ | |
char a[100], b[100]; | |
printf("Enter the first string\n"); | |
gets(a); | |
printf("Enter the second string\n"); | |
gets(b); | |
strcat(a, b); | |
printf("String obtained on concatenation is %s\n", a); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment