Using the following declaration: int [ , ] anArray = {{34, 55, 67, 89, 99}, {22, 68,

Question:

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. Console.WriteLine(anArray.Length);

b. Console.WriteLine(anArray[1, 2]);

c. Console.WriteLine(anArray[0, anArray.GetLength(0) - 2]);

d. Console.WriteLine(anArray[0, 2 + 1] * anArray[0, 0]);

e. Console.WriteLine(anArray.Rank);

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: