Write a loop to iterate through each index of this 2D array. int inventory [5] [2] = {{9345, 45},…

Write a loop to iterate through each index of this 2D array. int inventory [5] [2] = {{9345, 45},…

Question:

 

Transcribed Image Text:

Write a loop to iterate through each index of this 2D array.
int inventory [5] [2]
=
{{9345, 45},
{9346, 78),
(9347, 12),
(9348, 104},
{9349, 88}};

Expert Answer:

Answer rating: 100% (QA)

To iterate through each index of the 2D array inventory you can use nest
View the full answer