Nicholas K.

asked • 09/25/22

Help needed with understanding a problem

Given int[][] myVals ={{2, 4, 6, 8}, {20, 40, 60, 80}};

Using the above 2d vector, what is the value of myVals[1][2]?


The answer is 60. Can someone explain to me why?


Thanks

1 Expert Answer

By:

David W. answered • 09/25/22

Tutor
4.7 (90)

retired

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.