Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- char ch[50], copy[100], i;
- printf("Enter a string: ");
- gets(ch);
- for (i = 0; ch[i] != '\0'; i++)
- copy[i] = ch[i];
- copy[i] = '\0';
- printf("copy = %s", copy);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement