#include
#include
void main(void)
{
char s[80],ch;
int len,i;
gets(s);
len=strlen(s);
for(i=0;i { ch=s[i]; s[i]=s[len-i-1]; s[len-i-1]=ch; } printf("s=%s\n",s); /*最后的输出语句错了*/ }
#include
#define N 5
int main ( )
{ char c[N];
int i,temp;
printf("enter array c:\n"); //enter array是输入数组的意思
for(i=o;i
printf("\n");
for(i=0;i
c[i]=c[N-i-1];
c[N-i-1]=temp;
}
printf("\n Now array c:\n");
for(i=0;i
return 0;
}