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++;}
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments