for (int i = 1; i <= N; i++) {
array[N-i] }
The safe way to write it is:
for (int i = 0; i < N; ++i) { something(array[N - 1 - i]); }
The safe way to write it is:
(or with size_t instead of int depending on the type of N)