c语言 编写一个使用指针的c函数,交换数组a和数组b中的对应元素_百度知 ...答:include<stdio.h> int main(){ int Ii = 0, Itemp;int array_a[5] = {1,2,3,4,5};int array_b[5] = {6,7,8,9,0};int *a,*b;a=array_a;b=array_b;while( Ii < 5 ){ Itemp = *(a + Ii);(a + Ii) = *(b + Ii);(b + Ii) = Itemp;Ii ++;} Ii=0;...
求C语言,用指针写,编写一函数fun,功能是,求出数组的最大元素在数组中...答:include <stdio.h> int max_el(int array[], int size, int * k){ int iMax=0, i = 0, j = 0;for(i = 0; i < size; i++) { if (array[i] > iMax) { j = i;iMax = array[i];} } if (k) *k = iMax;return j;} int main(void){ int a[8] = {1,4,5,...