/*********************************************************
- Copyright (C): 2016
- File name : revstr.c
- Author : - Zxn -
- Date : 2016年08月28日 星期日 10时35分39秒
- Description : 编程实现字符串中各单词的翻转
* *******************************************************/
#include <stdio.h>
void swap(char *strone, char *strtwo)
{
*strone ^= *strtwo;
*strtwo ^= *strone;
*strone ^= *strtwo;
}
void revstr(char *str)
{
char *start = str;
char *end = str;
ch
[C/C++笔面试]编程实现字符串中各单词的翻转
![](https://img-home.csdnimg.cn/images/20240611030827.png)