+ 3

Why programmer remember only 'i' for loop

Why?

6th Nov 2019, 9:41 AM
Kyaw Htay
Kyaw Htay - avatar
3 Respuestas
+ 15
i= initial value i= initial condition i= increment
7th Nov 2019, 2:09 PM
Ayushi Gujarati
Ayushi Gujarati - avatar
+ 5
This behaviour may have its origin in FORTRAN programming language, where the (first) letter of a variable determines the data type. Variables beginning with I,J,K,L,M,N are integer variables (i for integer). Look at section 5.3 of the first FORTRAN standard from 1966: http://web.eah-jena.de/~kleine/history/languages/ansi-x3dot9-1966-Fortran66.pdf or page 10 of the first FORTRAN manual from 1956: https://www.fortran.com/FortranForTheIBM704.pdf
6th Nov 2019, 9:57 AM
Michael
Michael - avatar