Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main()
- {
- char plop[10] = " abbd";
- char plop2[10];
- int j = 0;
- int i = 0;
- strcpy(plop2, plop);
- for(i=0; i < 10; i++)
- {
- if(plop2[i] != ' ') {
- plop[j] = plop2[i];
- j++;
- }
- }
- printf("%s", plop);
- }
Add Comment
Please, Sign In to add comment