C program to concatenate two strings C Programming Friday, May 15, 2015 Reading Add Comment concate.c #include <stdio.h> #include <string.h> int main() { char a[1000], b[1000]; 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; } Output Enter the first string Code Enter the second string World55 String obtained on concatenation is CodeWorld55 C Programming C Programs Share: Facebook Twitter Google Plus Pinterest Related Articles
0 comments:
Post a Comment