有以下程序1
]8cX#N,M |0pBBDw UY& W] - void f(int a[], int i, int j)
- { int t;
- if(i<j)
- { t=a[i]; a[i]=a[j]; a[j]=t;
- f(a,i+1,j-1);
- }
- }
- main()
- { int i, aa[5]={1,2,3,4,5};
- f(aa,0,4);
- for(i=0; i<5; i++) printf("%d,",aa[i]);printf("\n");
- }
F^v{ Jqc eOmxA<h ; 8x^9Q /(L1!BPP9m rW>'2m6HU 执行后输出结果是
?lna8]t A)5,4,3,2,1, B)5,2,3,4,1, C)1,2,3,4,5, D)1,5,4,3,2,
e&7}N Za v__Go kj- (C[S?@S 答案:A
,&l