3 ms·
I'm not sure about go, but in C this could be: for(size_t i = zn; i-- > 0 ;) printf("%s\n",n[i]); (This is a large part of why unsigned over/underflow is we
by a1369209993 8y ago
I'm not sure about go, but in C this could be:
for(size_t i = zn; i-- > 0 ;) printf("%s\n",n[i]);
(This is a large part of why unsigned over/underflow is well-defined behavior in C.)
- nordsieck 8y agoIn Go, i++/i-- is a statement, not an expression, so that doesn't work. More generally, assignment is always a statement, and never an expression (e.g. you can't say a = b = c)