//将一串字符进行倒序
#include<stdio.h>
#define N 6
int main()
{int a[N]={0,1,2,3,4,5};int i,t;printf("原数组数值: ");for(i=0;i<N;i++)printf("%d",a[i]);for(i=0;i<N/2;i++){t=a[i];a[i]=a[N-1-i];a[N-1-i]=t;}printf("\n排序后的数组: ");for(i=0;i<N;i++)printf("%d",a[i]);printf("\n");return 0; }