Arrays

Q1:
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.

ANS:C -

intMyArr refers to a 3-D jagged array containing 2 2-D jagged arrays.

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.