Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- int main()
- {
- char s1[]="string";
- char s2[]="Copy";
- strcat(s2,s1);
- puts(s2);
- }
- another
- #include <stdio.h>
- #include <string.h>
- int main ()
- {
- char s[100];
- int length;
- strcpy(s, "My name is Niaz");
- length = strlen(s);
- printf("Length of %s is %d\n", s, length);
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement