#include <stdio.h>
char c[100];
int count = 0;
int main(){
void antitone(char c[]);
int i;
printf("请输入字符串:\n");
gets(c);
antitone(c);
printf("字符串反序存放为:\n");
puts(c);
}
void antitone(char c[]){
int i;
char cha;
while(c[count] != '\0')
count++;
for(i = 0;i <= count / 2;i++){
cha = c[i];
c[i] = c[count - i];
c[count - i] = cha;
}
//运行结果及疑问如下