Home /
Expert Answers /
Computer Science /
which-of-the-following-would-correctly-declare-and-instantiate-a-2-d-array-with-a-total-of-24-pa717
(Solved): Which of the following would correctly declare and instantiate a \( 2 D \) array with a total of 24 ...
Which of the following would correctly declare and instantiate a \( 2 D \) array with a total of 24 ints? Choose all that apply. int[]] values \( = \) new int[24]; int[12] values \( = \) new int[2]; int] values \( =\operatorname{int}[24] ; \) int[] values \( = \) new int[12][2]; int[]] values \( = \) new int[2][12]; int[2] values \( = \) new int[12]; int[4] values \( = \) new int[8]; int[] values \( =\operatorname{int}[4,8] \); int[24] values = new int[24]; int[] values \( = \) int[ \( [2,12] ; \) int][ values \( = \) new int[3][8]; none of these int[]] values \( = \) new int[ \( [8][3] \);
Given the following declaration: \( \begin{aligned} \text { int[][] values }=\{&\{4,72,27,64\} \\ &\{18,94,42,52\}, \\ &\{78,39,87,97\} \end{aligned} \) Evaluate the following expression: