Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 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. x[2] = '\0';
  12.  
  13. x = 3;
  14. j = 0;
  15.  
  16. s[x] = x[j];
  17.  
  18. (copied the beginning of x into the end of s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement