void r(char *str) { char *new = str; while (*str != '\0') { if (*str != ' ') *(new++) = *str; str++; } *new = '\0'; }
我有这个功能,但我不理解if语句之后的代码.如果有人能向我解释,我将不胜感激.
c pointers function
c ×1
function ×1
pointers ×1