Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void strcat1(char *, char *);
- int main()
- {
- char *s = "Pointer";
- char *t = "Array";
- strcat1(s,t);
- printf("\n");
- puts(s);
- printf("\n");
- return 0;
- }
- void strcat1(char *s, char *t)
- {
- while(*s++ != '\0')
- ;
- while(*s++ = *t++)
- ;
- }
Add Comment
Please, Sign In to add comment