Skip to content

Instantly share code, notes, and snippets.

@kylelk
Created August 11, 2013 07:12
Show Gist options
  • Save kylelk/6203830 to your computer and use it in GitHub Desktop.
Save kylelk/6203830 to your computer and use it in GitHub Desktop.
join two strings
#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