Which of the following assigns the number 0 to each element in a two-row, four-column Integer array

Question:

Which of the following assigns the number 0 to each element in a two-row, four-column Integer array named intSums?
a. For intRow As Integer = 0 To 1
For intCol As Integer = 0 To 3
intSums(intRow, intCol) = 0
Next intCol
Next intRow
b. Dim intRow As Integer
Dim intCol As Integer
Do While intRow < 2
intCol = 0
Do While intCol < 4
intSums(intRow, intCol) = 0
intCol += 1
Loop
intRow += 1
Loop
c. For intX As Integer = 1 To 2
For intY As Integer = 1 To 4
intSums(intX - 1, intY - 1) = 0
Next intY
Next intX
d. All of the above.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: