c语言,编写函数int* find(),找出一维整型数组中的最大数,返回其指针...答:include <stdio.h>int* find(int *a,int n){int *p,*p1; for(p=p1=a;p*p1)p1=p; return p1;}int main(){int a[10]={12,34,23,5,34,31,32,33,45,15},*p; p=find(a,10); printf("Max=a[%d]=%d\n",p-a,*p); return 0;} ...
编程实现用冒泡排序法对有12个数组元素一维整型数组array[12]={96,3...答:您好,这样:这个事升序排列 int one = 0;int two = 0;int[] array = { 96,35,12,58,78,90,587,21,0,-64,106,52};for (int i = 0; i < array.length - 1; i++) { for (int j = i; j < array.length - i - 1; j++) { one = array[j];two = array[j + 1...