Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
TwoBit
on Dec 26, 2014
|
parent
|
context
|
favorite
| on:
Subtraction is not comparison
The C99 language standard requires support for long long.
dezgeg
on Dec 27, 2014
[–]
But an implementation where sizeof(int) == sizeof(long) == sizeof(long long) is allowed by the specification.
marvy
on Dec 31, 2014
|
parent
[–]
On a (slightly) more practical level: there exists some largest integer type. You may someday need to sort it. If you want your sort to always work, you can't afford to overflow.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: