//this is a program to demosntrate strcat() funtion
#include<stdio.h>
#include<conio.h>
void main()
{
char fname[20], lname[20];
printf("\n\nEnter your first name: ");
scanf("%s",&fname);
printf("\n\nEnter your Last name: ");
scanf(" %s",&lname);
strcat(fname,lname);
printf("\n\n %s",fname);
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
char fname[20], lname[20];
printf("\n\nEnter your first name: ");
scanf("%s",&fname);
printf("\n\nEnter your Last name: ");
scanf(" %s",&lname);
strcat(fname,lname);
printf("\n\n %s",fname);
getch();
}