#include <stdio.h>
#include <string.h>
#include<conio.h>
void main()
{
char a[100], b[100];
printf("\n\n program to concatenate 2 strings using strcat()");
printf("\n Enter the first string : ");
gets(a);
printf(" Enter the second string : ");
gets(b);
strcat(a,b);
printf("String 1 after concatenation = %s\n",a);
getch();
}
#include <string.h>
#include<conio.h>
void main()
{
char a[100], b[100];
printf("\n\n program to concatenate 2 strings using strcat()");
printf("\n Enter the first string : ");
gets(a);
printf(" Enter the second string : ");
gets(b);
strcat(a,b);
printf("String 1 after concatenation = %s\n",a);
getch();
}

No comments:
Post a Comment
Guys if you think something is wrong or should be edit than please do comment.