in reply to RE: Get every nth element
in thread Get every nth element
the pre-increment also serves to shift the effective array
indexing from zero-based to one-based, allowing the modulus
arithmetic to return 0 on the correct indices. if you used
postincrement, then the modulus would be evaluated before
the increment, causing the wrong elements to be chosen.