#include<stdio.h>
void main()
{
char original[50], duplicate[50];
clrscr();
printf("Enter the text: ");
scanf("%s", original);
strcpy(duplicate, original);
printf("\nOrignal string: %s", original);
printf("\nDuplicate string: %s", duplicate);
getch();
}
void main()
{
char original[50], duplicate[50];
clrscr();
printf("Enter the text: ");
scanf("%s", original);
strcpy(duplicate, original);
printf("\nOrignal string: %s", original);
printf("\nDuplicate string: %s", duplicate);
getch();
}
ReplyDeletenice article for beginners.thank you.
javacodegeeks
welookups