- Why we use i, j, and k in for loops
In Fortran, all variables starting with the letters I, J, K, L, M and N are integers... (This is the source of the long tradition of using "i", "j", "k" etc as the loop indexes of "for loops" in many programming languages -- few of which have implicit typing).
I always assumed it was derived from mathematics notation conventions... like the tendency to use i, j, and k for columns in matrix operations, which can frequently translate to for loops in code.
- CONTEMPORIST ยป Condo Building With Garage Door Windows
- I'm saving this idea for my future dream home.
Meanwhile, elsewhere
Other sites of interest: