[Tutor] Loop Variables
Tim Wilson
wilson at visi.com
Thu Jun 24 09:49:52 EDT 2004
On 6/12/04 12:30 PM, "ivan low" <visional_freeman at yahoo.com> wrote:
> Hi, I had come to read a book about loop variable that have i, j, k.
> I don't understand why are there 3 type?
> What's the different?
Looping variables are often used to keep track of how many times the loop
has been executed and not for any other purpose. Using i, j, and k is a
common convention. They're quick to type and remind the programmer that
they're just for counting loops.
-Tim
--
Tim Wilson
Twin Cities, Minnesota, USA
Educational technology guy, Linux and OS X fan, Grad. student, Daddy
mailto: wilson at visi.com aim: tis270 public key: 0x8C0F8813
More information about the Tutor
mailing list