Question: Using the following declaration: int [ , ] anArray = {{34, 55, 67, 89, 99}, {22, 68, 11, 19, 45}}; what would be the result
Using the following declaration:
int [ , ] anArray = {{34, 55, 67, 89, 99}, {22, 68, 11, 19, 45}};
what would be the result of each of the following output statements?
a. WriteLine(anArray.Length);
b. WriteLine(anArray[1, 2]);
c. WriteLine(anArray[0, anArray.GetLength(0) − 2]);
d. WriteLine(anArray[0, 2 + 1] * anArray[0, 0]);
e. WriteLine(anArray.Rank);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
