Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Bimos
· 4mo ago · 0 comments
I'm super confused. In your example, ++i is equivalent to (i+1) and the loop updates i itself. But with the syntax in the blogpost, i is only initialized, and it is the ++i that updates the value?
Comments
[–]
pjmlp
4mo ago
Copy paste error, too late to update the comment, it should be a plain i.
[–]
spider-mario
4mo ago
Yes. You don’t sound that confused?