C# Programming - Arrays - Discussion

Discussion :: Arrays - General Questions (Q.No.10)

10. 

Which of the following statements is correct about the array declaration given below?

   int[][][] intMyArr = new int[2][][];

[A]. intMyArr refers to a 2-D jagged array containing 2 rows.
[B]. intMyArr refers to a 2-D jagged array containing 3 rows.
[C]. intMyArr refers to a 3-D jagged array containing 2 2-D jagged arrays.
[D]. intMyArr refers to a 3-D jagged array containing three 2-D jagged arrays.
[E]. intMyArr refers to a 3-D jagged array containing 2 2-D rectangular arrays.

Answer: Option C

Explanation:

No answer description available for this question.

Ashwini Gawade said: (Nov 19, 2012)  
A jagged array is sometimes called as "Array-of- Arrays".

Tanmay Mote said: (Jan 19, 2017)  
Please explain how " C " is the answer?

Rammohan Reddy said: (Jun 4, 2017)  
The Jagged array should contain differ the elements of one row to another.
so it contain 3 different rows i.e., 3-Dimensional Array.
Comparing to each row it contains 2 2-Dimensional Arrays.

So, The answer is option C.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.