C program to concatenate two strings C Programming Friday, May 15, 2015 1 min 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 Next C program to reverse a string Previous C program to compare two strings Related Articles C program to swap two stringsC program to sort a string in alpha...C program to fetch a sub-string fro...C program to convert string to inte...C palindrome program / c program to...C program to reverse a string
0 comments:
Post a Comment