Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. strcpy(s,"ste");
  2. strcpy(x,"ve");
  3.  
  4. s[0] = 's';
  5. s[1] = 't';
  6. s[2] = 'e';
  7. s[3] = '\0';
  8.  
  9. x[0] = 'v';
  10. x[1] = 'e';
  11.  
  12. x = 3;
  13. j = 0;
  14.  
  15. s[x] = x[j];
  16.  
  17. (copied the beginning of x into the end of s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement