Y
Hacker News
new
|
ask
|
show
|
jobs
by
ramshorns
2119 days ago
That's the idiomatic way? Cool. The more straightforward-looking way,
for(i = n-1; i >= 0; i--) { /* operate on a[i] */ }
breaks if i is unsigned, like a size_t.
1 comments
a1369209993
2119 days ago
Yep. That why it's a idiom, rather than a obvious-way-of-doing-it-that-anyone-competent-would-use.
link