阅读程序,写出程序运行结果。#include <std
阅读程序,写出程序运行结果。
#include <stdio.h>
void main( void )
{
char str[10]= "abcde", tmp;
int i, j;
for(i=0, j=4; i<j; ++i, --j)
{
tmp=str[j];
str[j]=str[i];
str[i]=tmp;
}
printf("%s\n", str);
}