下面程序的运行结果是
#include
#define SIZE 12
sub(char *a,int t1,int t2)
{ char ch;
while(t1 { ch=*(a+t1); *(a+t1)=*(a+t2); *(a+t2)=ch; t1++;t2--; } } main() { char s[SIZE]={’A’,’B’,’C’,’D’,’E’,’F’,’G’,’H’,’I’,’J’,’K’,’L’}; int i; sub(s,7,SIZE-1); for(i=0;i printf("%c ",s[i]); printf("\n"); }
订单号:
遇到问题请联系在线客服
订单号:
遇到问题请联系在线客服