#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;
}