Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kevin_thibedeau
on July 21, 2014
|
parent
|
context
|
favorite
| on:
Which is faster? while(1) {} or while(2) {}
while() doesn't cast to bool in C. It compares to integer 0 which will become an unconditional jump after optimization.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: