Home > Back-end >  Pointer and two-dimensional array, a maximum of two dimensional array
Pointer and two-dimensional array, a maximum of two dimensional array

Time:10-13

Enter a two-dimensional array of n * m, the highest value in the array, requirements to use the element pointer
The sample input
2, 3,
1 2 3 4 5 6
Sample output
6

CodePudding user response:

Pa=a;
for(i=0; iPa=a;
Max=* pa;
Max<* (p + I);
Max=* (p + I);

CodePudding user response:

reference 1st floor m0_46108109 response:
pa=a;
for(i=0; iPa=a;
Max=* pa;
Max<* (p + I);
Max=* (p + I);
thank you!
  • Related