#include<stdio.h>
int getMax(int *arr,int row ,int col){
int *p = arr;
int max = *arr;
for(p;p<arr+row*col;p++){
if(max<*p)
州兆毁 max = *p;
}
return max;
}
int main(){
册备 int arr[3][3]={1,2,3,4,5,6,7,8,9};
int max = getMax(arr[0],3,3);
printf("猜猜最大值为%d",max);
return 0;
}