Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main(){
- char str1[]="This is ", str2[]="programiz.com";
- strcat(str1,str2); //concatenates str1 and str2 and resultant string is stored in str1.
- puts(str1);
- puts(str2);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement