boost learn study
Friday, March 28, 2014
strcpy() - String Handling Functions
/*Write a program to copy one string into another string*/ #include
#include
#include
void main() { char name1[20], name2[10]; clrscr(); printf("Enter the two Names:\n"); scanf("%s%s",name1,name2); i = strcpy(name1,name2); printf("\n Copy String=%s",name1 getch(); }
Output is as :
Enter the two Names
Bintu
Chaudhary
Bintu Chaudhary
Read more �
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment