devilish666@lemmy.world to Programmer Humor@lemmy.ml · 8 months agoAaargh....my eyes......my eyes......lemmy.worldimagemessage-square86fedilinkarrow-up1512arrow-down111
arrow-up1501arrow-down1imageAaargh....my eyes......my eyes......lemmy.worlddevilish666@lemmy.world to Programmer Humor@lemmy.ml · 8 months agomessage-square86fedilink
minus-squareRogueBanana@lemmy.ziplinkfedilinkEnglisharrow-up65arrow-down1·8 months agoI would take this over int a; anyday
minus-squareintelisense@lemm.eelinkfedilinkarrow-up28·8 months agoAmateur! Ints should be called i, j or k.
minus-squareRogueBanana@lemmy.ziplinkfedilinkEnglisharrow-up25·8 months agoCmon now its illegal to use them anywhere other than iterators
minus-squareFooBarrington@lemmy.worldlinkfedilinkarrow-up3·8 months agoI sometimes use n as my loop variable (⌐■_■)
minus-squareSorryQuick@lemmy.calinkfedilinkarrow-up1·8 months agon is genrally the max though. “From i=0 to n” is used in math all the time.
minus-squareIronfacebuster@lemmy.worldlinkfedilinkarrow-up14·8 months agoint IntegerThatWillBeUsedToIterateOverAListOfItemsAndModifyThem2
I would take this over int a; anyday
Amateur! Ints should be called i, j or k.
Cmon now its illegal to use them anywhere other than iterators
This is the way
I sometimes use
n
as my loop variable (⌐■_■)n is genrally the max though. “From i=0 to n” is used in math all the time.
int IntegerThatWillBeUsedToIterateOverAListOfItemsAndModifyThem2