C# Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 8)
8.
Which of the following statements are correct about the C#.NET code snippet given below?
   int[][]intMyArr = new int[2][]; 
   intMyArr[0] = new int[4]{6, 1, 4, 3}; 
   intMyArr[1] = new int[3]{9, 2, 7};
intMyArr is a reference to a 2-D jagged array.
The two rows of the jagged array intMyArr are stored in adjacent memory locations.
intMyArr[0] refers to the zeroth 1-D array and intMyArr[1] refers to the first 1-D array.
intMyArr refers to intMyArr[0] and intMyArr[1].
intMyArr refers to intMyArr[1] and intMyArr[2].
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
3 comments Page 1 of 1.

Sridhar said:   8 years ago
How? I am not getting.

Amit said:   7 years ago
Option A- intMyArr is a reference to a 2-D jagged array.

I think it is correct.

Krishan chandra said:   6 years ago
I think Option-A is correct.
Can anyone explain How option-C is correct?

Post your comments here:

Your comments will be displayed after verification.