3 ms·
You can always rip a page out of C++’s playbook: for (size_t i = length; i > 0; i--) { // ... item = array[i - 1]; (This is how reverse it
by pwdisswordfish9 4y ago
You can always rip a page out of C++’s playbook:
for (size_t i = length; i > 0; i--) {
// ...
item = array[i - 1];
(This is how reverse iterators work in C++.)