STRING COPY

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
 char nm1[20],nm2[20];
 clrscr();
 printf("\nEnter Name : ");
 gets(nm1);
 strcpy(nm2,nm1);
 printf("\nGiven  Name : %s",nm1);
 printf("\nCopied  Name : %s",nm2);
 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...