PROGRAM:
#include<stdio.h>
#include<string.h>
main()
{
char
s[20],s1[20]; printf("Enter a String1\n"); scanf("%s",s);
printf("Enter a String2\n"); scanf("%s",s1); strcat(s,s1);
printf("The
Concatenated String is %s\n",s);
}
OUTPUT:
Enter
a String1 hai
Enter
a String2 hello
The Concatenated String is haihello
No comments:
Post a Comment