STRING CONCATENATION

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
 int l;
 char fnm[20],lnm[20];
 clrscr();
 printf("\nEnter First Name : ");
 gets(fnm);
 printf("\nEnter Last Name : ");
 gets(lnm);
 printf("\nUr First Name : %s",fnm);
 printf("\nUr Last Name : %s",lnm);
 strcat(fnm,lnm);
 printf("\nFull Name : %s",fnm);
 getch();

}
Output

No comments:

Post a Comment

Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II

Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II :   1) Which of the following is the extension of Not...