Question: Assume the declaration: int [] matrix = new int [3] [2]; for (int r = 0, r < matrix.length; r++) for (int x = 0;
Assume the declaration: int [] matrix = new int [3] [2];
for (int r = 0, r < matrix.length; r++)
for (int x = 0; x< matrix.length; x++)
matrix [r][x] = 3 * r + x.
What will be printed?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
