Solved

Consider the Following Code Snippet

Question 110

Multiple Choice

Consider the following code snippet:
Int cnt = 0;
Int[][] numarray = new int[2][3];
For (int i = 0; i < 3; i++)
{
For (int j = 0; j < 2; j++)
{
Numarray[j][i] = cnt;
Cnt++;
}
}
What is the value of numarray[1][2] after the code snippet is executed?


A) 2
B) 5
C) 3
D) 4

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions