A
Q. What will be the content of array variable table after executing the following code?
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
if (j == i) {
table[i][j] = 1;
} else {
table[i][j] = 0;
}
}
}
- Correct Answer - Option(C)
- Views: 6
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.