Question: 3. Access array elements by index Given the following declaration: int[] values = {4,60,19,57,80,97,65,9,14,78}; Evaluate the following expression: values[1] Given the following declaration: int[]
3. Access array elements by index Given the following declaration: int[] values = {4,60,19,57,80,97,65,9,14,78}; Evaluate the following expression: values[1] Given the following declaration: int[] [] values = { {4, 71, 26, 63}, }; {18, 91, 45, 49}, {79, 34, 85, 98} Evaluate the following expression: values[1][2]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
