Windows Phone Developers

Friday, December 5, 2008

What is rank of an array?

What is rank of an array (.NET)?

Rank of the array is nothing but the number of dimensions of an array.

int[] Marks = new int[5];

int[,] Matrix = new int[5, 5];

Marks is a single dimensional array (Rank 1) and Matrix is two-dimensional array (Rank 2) containing (5 X 5) elements

Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon


  1. no that is not what rank of a matrix is.

  2. Rank is no of dimensions in the array