3 ms·
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 i
by Bimos 3mo ago
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?
- spider-mario 3mo agoYes. You don’t sound that confused?
- pjmlp 3mo agoCopy paste error, too late to update the comment, it should be a plain i.