You are viewing a single comment's thread. Return to all comments →
Because our array is of 6x6. when we run arr[i][j+2] In j+2=5(When loop run second last time (3+2=5)) which valid . This is the reason.
Seems like cookies are disabled on this browser, please enable them to open this website
2D Array - DS
You are viewing a single comment's thread. Return to all comments →
Because our array is of 6x6. when we run arr[i][j+2] In j+2=5(When loop run second last time (3+2=5)) which valid . This is the reason.