Deandre J.

asked • 11/20/14

Computer Science

How do i print elements in an array backwards?

2 Answers By Expert Tutors

By:

Paul S. answered • 11/20/14

Tutor
5 (11)

Patient & compassionate Math and Physics tutor

Adam V.

Just a nitpick Paul, your loop will go outside the range of the array (assuming zero-indexed arrays). The i variable should be initialized to Length(A) - 1, or else you will be starting at A[Length(A)] which is one element too far. =)
Report

04/26/16

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.