Sahil Dev

Sahil Dev

  • NA
  • 77
  • 7.4k

I have a two dim array. Example

Jul 28 2016 8:15 AM

I have a 2 dim array (dimensions n x 3) as below:

 xx[0][0] =1

xx[0][1]=2 
xx[0][2]= 4
 
.....
 
xx[n][0]=7;
xx[n][1]=8
xx[n][2]=10;
 
I want to obtain the largest number corresponding to position 2.
 
That is largest of: xx[0][2], xx[1][2], xx[2][2], xx[3][2], .....xx[n][2].
 
IS there a built in C# function to do that? 

Answers (4)