You are viewing a single comment's thread. Return to all comments →
why is it for (int i = numElements - 1; i >= 0; i--) instead of for (int i = numElements - 1; i = 0; i--)?
Can anyone explain this to me? Thank you!
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays Introduction
You are viewing a single comment's thread. Return to all comments →
why is it for (int i = numElements - 1; i >= 0; i--) instead of for (int i = numElements - 1; i = 0; i--)?
Can anyone explain this to me? Thank you!