Advertisement
sujonshekh

//strcat

Aug 5th, 2016
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1.  
  2.  
  3. #include <stdio.h>
  4. #include <string.h>
  5. int main(){
  6.     char str1[]="This is ", str2[]="programiz.com";
  7.     strcat(str1,str2);   //concatenates str1 and str2 and resultant string is stored in str1.
  8.     puts(str1);    
  9.     puts(str2);
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement