News for hackers. Stuff that matters.
Re:3rd Edition of Programming: Principles and Practice Using... by ChuckMcM on Friday April 19, 2024 @01:09PM (#40089358)
I was teaching one of the local highschool kids how to program in C and they asked "So why does everybody use i,j, and k for their indexes in loops?"
Re:3rd Edition of Programming: Principles and Practice Using... by pklausler on Friday April 19, 2024 @01:15PM (#40089429)
I only use 'j' and 'k', not 'i ' -- the rarely-used letters are easier to search for.
Re:3rd Edition of Programming: Principles and Practice Using... by yellowstuff on Friday April 19, 2024 @08:55PM (#40093551)
ii is also good.
Re:3rd Edition of Programming: Principles and Practice Using... by magpi3 on Friday April 19, 2024 @06:29PM (#40092637)
i stands for index. j and k because we can't use i anymore, and maybe because they are close together on the keyboard