SHARE
TWEET

run hoy na k

RAJIBRAJU Jul 22nd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. #include<string.h>
  3. int main ()
  4. {
  5.     char str1[300];
  6.     char str2[300];
  7.     int j,l;
  8.     printf("enter first string");
  9.     gets(str1);
  10.      l=str1en(str1);
  11.     printf("enter second string:");
  12.     gets(str2);
  13.  
  14.     for(j=0;str2[j]!='\0';j++)
  15.     {
  16.          str1[l+j]=str2[j];
  17.     }
  18.     str1[l+j]='\0' ;
  19.  
  20.     printf("after concate = %s",str1);
  21.  
  22.     return 0;
  23. }
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