Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hujun236
9 days ago
|
parent
|
context
|
favorite
| on:
Iterating Backwards in C
The part I like is starting from the count rather than count-1. If n is 0, `i --> 0` never enters. Do `size_t i = n - 1` and a zero-length array wraps to SIZE_MAX first, which is the case that actually runs off the front.
help
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: