cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Display an array
Display an array
Sep 27, 2017 at 12:47pm UTC
haddaauk
(17)
Thanks
Last edited on
Sep 29, 2017 at 2:24am UTC
Sep 27, 2017 at 12:55pm UTC
Repeater
(3046)
Your current loop starts at size - 2 and finishes at zero, subtracting two each time.
If you want to go the other way, start at zero, finish at size -2, and add two each time.
Topic archived. No new replies allowed.