第1个回答 推荐于2016-01-15
#include <stdio.h>
#include <string.h>
#include <conio.h>
void main()
{
char str,ch[]="this is a book";
int i,j,len;
len=strlen(ch);
for(i=0,j=len-1;i<j;++i,--j)
{ str=ch[i];
ch[i]=ch[j];
ch[j]=str;
}
puts(ch);
return 0;
}本回答被提问者采纳