#include<stdio.h>
#include<conio.h>
void main()
{
char name[25],copy[25];
clrscr();
printf("\nEnter your name:");
scanf("%s",name);
strcpy(copy,name);
printf("\nYour name is %s",name);
printf("\n\ncopied string is %s",copy);
getch();
}
|
string copy using strcpy inbuilt function |
No comments:
Post a Comment