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
no that is not what rank of a matrix is.
ReplyDeleteRank is no of dimensions in the array
ReplyDelete