daily pastebin goal
72%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include<string.h>
  3.  
  4. int main(void) {
  5.     char s1[]="Hello";
  6.     char s2[]="World";
  7.  
  8.     strcat(s1,s2);
  9.     int s2_len=strlen(s2);
  10.  
  11.     printf("s1 = %s, s2 = %s and length of s2 = %d.n", s1, s2, s2_len);
  12.  
  13.     return 0;
  14. }
  15.    
  16. s1 = HelloWorld, s2 = orld and length of s2 = 4.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top