Use the sales array to answer Review Questions 3 through 6. The array was declared using the int sales[2][5] = {{10000, 12000, 900, 500, 20000}, {350, 600, 700, 800, 100}}; statement.
Which of the following if clauses verifies that the array subscripts stored in the row and col variables are valid for the sales array?
a. if (sales[row][col] >= 0 && sales[row][col] < 5)
b. if (sales[row][col] >= 0 && sales[row][col] <= 5)
c. if (row >= 0 && row < 3 && col >= 0 && col < 6)
d. if (row >= 0 && row <= 1 && col >= 0 && col <= 4)
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.