SHARE
TWEET

Untitled

a guest Apr 23rd, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. int main()
  3. {
  4.     char s1[100], s2[100],s3[100], i, j, y;
  5.  
  6.     printf("First Name: ");
  7.     scanf("%s", s1);
  8.  
  9.     printf("Middle Name: ");
  10.     scanf("%s", s2);
  11.    
  12.     printf("Last Name: ");
  13.     scanf("%s",s3);
  14.  
  15.  
  16.     for(i = 0; s1[i] != '\0'; ++i);
  17.  
  18.     for(j = 0; s2[j] != '\0'; ++j, ++i)
  19.    
  20.     for(y = 0; s3[y] != '\0'; ++y, ++j, ++i)
  21.     {
  22.         s1[i] = s2[j] & s3[y];
  23.     }
  24.  
  25.     s1[i] = '\0';
  26.     printf("After concatenation: %s", s1);
  27.  
  28.     return 0;
  29. }
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