Re:Go is Not Python
by dragonwriter on Thursday June 22, 2017 @09:43PM
(#14616624)
While C has no for-in loop, the natural translation of that to a C style for loop and the C address-of operator would work the same way; the key thing is that student is a variable defined outside the loop whose value is modified each iteration, not a fresh variable allocated with each loop iteration.
[ Parent
| on HN ]
There are no comments on this comment yet.