Home / Programming MCQs / JAVA MCQs / Question

R

Ram Sharma • 178.09K Points
Coach

Q. Choose the correct way of initializing a multidimensional array below.

(A) int[][] code = {{1,2},{3,4,5}};
(B) int[2][] code = {{1,2},{3,4,5}};
(C) int[][] code={1,2,3,4,5};
(D) All of the above

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.