Deloitte Interview Questions | Is an Array a Matrix or a Matrix an Array?
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
It will take less than 1 minute to register for lifetime. Bonus Tip - We don't send OTP to your email id Make Sure to use your own email id for free books and giveaways
Answers ( 3 )
matrix is an array.
matrix is a 2D array.
A matrix is a 2D array with which follows the rules for linear algebra. It is, therefore, a subset of more general arrays which may be of higher dimension or not necessarily follow matrix algebra rules.
An array is a matrix but a matrix is not necessarily an array.
An array holds multi-dimensional rectangular data, rectangular in the
sense that each row and column has the same length.
Matrix has only 2 dimensions, so it is a special case of 2-D array.
Matrix is an array of dimension two. But not all arrays are matrices since arrays can be multidimensional.