// Use a pointer to operate a two-dimensional array float (* pointer) [4], pointerIs a float * Type Variable, To see clearly! Points to a one-dimensional array with four elements.
Float * search (float (* pointer) [4], int N)
See this writing!
// Note !! * (Pointer + n) and (* pointer + n.
// Pointer Points to a two-dimensional array !! That is, pointer is of the int ** type. * pointer + N is equivalent to adding N to the subscript of one-dimensional array.
Int main(){
Float score[][4] = {{60,70,80,90},{56,89,67,88},{34,78,90,66}};// score +i is the ground i First address
Float * search(float (*pointer)[4], int n); //(*pointer)[4] ? represents an array of ones
Float * p;
Int i,m;
Printf("Enter the number of students:");
Scanf("%d",&m);
p = search(score,m);
For(i=0; i<4; i++)
Printf("%5.2f\t",*(p+i));
Printf("\n");
Float * search(float(* pointer)[4],int n){
Float * pt;
Pt = *(pointer+n);
Return(pt);
}
Return 0;
}