Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - C language defines an integer two-dimensional array a[3][4] and assigns the maximum value of the elements in the output array A?
C language defines an integer two-dimensional array a[3][4] and assigns the maximum value of the elements in the output array A?
# contains "stdlib.h"

# contains "stdio.h"

Invalid master (invalid)

{

int a[3][4] = { 1 1,33,22,44,66,77,55,0, 1 1,88,66, 13 };

int i,max = 0;

int * p =(int *)a;

for(I = 0; I< 12; i ++,p++)

Max = * p> Max. * p:max;

Printf( "max is %d ",max);

}