通过海量题库、编程比赛和实时排名,系统化提升您的编程能力。
阅读程序,写出程序运行结果。
#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); }