Suppose that p is a two-dimensional array with elements of type int. Which of the statements below best describes the effect of the following code?
int i = 0;
while ( i < p[ 0 ].length )
{
p[ 0 ][ i ] = 0;
i++;
}
Could someone translate this to plain english for me?
I only understand that the loop will keep going when i < p[0].length but what is p[0] and what is p[0][i] ?
1 Answer