"for" loops in C ...

Tim W Smith ts at cup.portal.com
Tue Nov 1 18:35:59 AEST 1988


I don't know about i[ptr] being less readable than ptr[i].  Most people I
have heard would say when describing an algorithm in English, "Then you take
the ith element of the array and multiply by foo".  i[array]*foo has the
words in C in the same order they would be spoken.

						Tim Smith



More information about the Comp.lang.c mailing list