(1)经典面试题: 翻转句子中的单词,并将单词的字母顺序翻转, 标点符号和字母一样处理
void Reverse(char *begin, char *end){ if(begin == NULL || end == NULL) return ; while(begin < end){ char tp = *begin; *begin = *end; *end = tp; begin++; end--; } } char * ReverseSentence(char *sentence){ if(sentence == NULL) return NULL; char *end = sentence; while(*end != ‘0' )end++; end--; Reverse(sentence, end); char *begin = sentence; end = sentence; while(begin != '