有以下函数#include <stdio.h>viod exch(int t[ ]){t[0]=t[5];}void main( ){int x[10]={1,2,3,4,5,6,7,8,9,10},i=0; while(i<=4) {exch(&x[i]); i++;} for(i=0;i<5;i++) printf(“%d”,x[i]); printf(“”);}程序运行输出结果是( )。
A、2 4 6 8 10
B、1 3 5 7 9
C、1 2 3 4 5
D、6 7 8 9 10
发布时间:2025-07-12 19:32:33