#include <stdio.h>
#include <string.h>
void reverseStr(char *low,char * high){
while(low<high){
char t= *low;
*low = *high;
*high = t;
low++;
high--;
}
}
int main () {
//JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
//printf("Hello world! - c.jsrun.net.");
char str[] = {"HELLO WORLD HERE I COME" },*low=str,*high=low;
int len= strlen(str);
reverseStr(str,str+len-1);
while(*low){
while((' '!= *high) && *high){
high++;
}
printf("hh");
reverseStr(low,high-1);
if(*high){
low = ++high;
}
}
printf("%s",str);
return 0;
}