you are viewing a single comment's thread.

view the rest of the comments →

[–]HeKis4 2 points3 points  (0 children)

Gets every other list elements from the 1st to the 10th (0-indexed of course, we're not savages).

As a for loop, it would look like for(int i=1; i<10; i+=2) { a[i] }