Your MCQ
Feed
(current)
Add MCQ
Notifications
0
Categories
Tags
Login
Search
Home
/ Report Question
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; } } }
A. 0 0 0 0 0 0 0 0 0.
B. 1 0 0 1 1 0 1 1 1.
C. 1 0 0 0 1 0 0 0 1.
D. 0 0 1 0 1 0 1 0 0.
Name
Email
Message