Guest User

Untitled

a guest
Apr 20th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main()
  5. {
  6. char plop[10] = " abbd";
  7. char plop2[10];
  8. int j = 0;
  9. int i = 0;
  10.  
  11. strcpy(plop2, plop);
  12.  
  13. for(i=0; i < 10; i++)
  14. {
  15. if(plop2[i] != ' ') {
  16. plop[j] = plop2[i];
  17. j++;
  18. }
  19. }
  20. printf("%s", plop);
  21. }
Add Comment
Please, Sign In to add comment