Finalsolo963@lemmy.blahaj.zone to 196@lemmy.blahaj.zoneEnglish · 2 years agoLua rulelemmy.blahaj.zoneimagemessage-square7fedilinkarrow-up1129arrow-down11file-text
arrow-up1128arrow-down1imageLua rulelemmy.blahaj.zoneFinalsolo963@lemmy.blahaj.zone to 196@lemmy.blahaj.zoneEnglish · 2 years agomessage-square7fedilinkfile-text
minus-squareezchili@iusearchlinux.fyilinkfedilinkarrow-up2·edit-22 years agoThere’s a syntax for indexing starting from 0, it’s *(&arr+0) to *(&arr+(n-1)) For the rest of us who are manipulating sets of values and not offsets on pointers and aren’t delusionally attached to conventions, there’s arr[1] to arr[n]
There’s a syntax for indexing starting from 0, it’s
*(&arr+0) to *(&arr+(n-1))
For the rest of us who are manipulating sets of values and not offsets on pointers and aren’t delusionally attached to conventions, there’s arr[1] to arr[n]