• + 0 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.