#include "stdio.h"#include "string.h"void reverse_str(char *p){ 行烂 int i,j; for(j=strlen(p)-1,i=0;i p[i]^=p[j],p[j]^=p[i],p[i]^=p[j];}int main(void){ char a[]="1234567890"; printf("%s\n"档岩漏,a); reverse_str(a); printf("%s\n"枣郑,a); return 0;}