#include
#include
#include
void main()
{
char A[20],b[20];
int i,c=0;
clrscr();
puts("\nENTER THE STRING:");
gets(A);
puts("\n\nENTERED STRING IS");
puts("\n\n");
puts(A);
strcpy(b,A);
printf("\n\nAFTER COPYING STRING IS:%s",b);
getch();
}
/*---------------------------------------------------------
OUTPUT
-----------------------------------------------------------
ENTER THE STRING:
ABHISHEK
ENTERED STRING IS
ABHISHEK
AFTER COPYING STRING IS:ABHISHEK
*/
No comments:
Post a Comment