Printing parts of an Array Tutorial

From Progzoo
Jump to: navigation, search

Print all elements

Print every element of the array x


[Font] [Default] [Show] [Resize] [History] [Profile]

Print all elements bar the first one

Print every element of the array x except element 0


[Font] [Default] [Show] [Resize] [History] [Profile]

Print all elements bar the last one

Print every element of the array x except the last one.


[Font] [Default] [Show] [Resize] [History] [Profile]

Print all elements bar the first one and the last one

Print every element of the array x except the first and the last one


[Font] [Default] [Show] [Resize] [History] [Profile]

Print every other element of the array

Print elements 0,2,4...


[Font] [Default] [Show] [Resize] [History] [Profile]