this piece of code is supposed to delete spaces in the char array "a b c d e";
the first one works properly, the second one doesn't;
what is the difference between them?
-----1-----
int i = 0, j = 0;
while((*(str + i) = *(str + j++)) != '\0'){
if(*(str + i) != 32)i++;}
Comments
Leave a comment