What is Array.GetLength for?

4

To know the size of a vector, I can only use nomedovetor.Length , right?

I saw an example in a for structure, where GetLength(0) or GetLength(1) was used to capture the dimensions of a array of rows and columns.

Could you explain this 0 and 1 in parentheses? I did not quite understand it.

Thank you in advance!

    
asked by anonymous 31.05.2015 / 16:18

1 answer

7
  

To know the size of a vector , I can use just the    nomedovetor.Length , right?

Depends, if it is a multidimensional array

31.05.2015 / 16:33