Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
asimpletune
on April 14, 2020
|
parent
|
context
|
favorite
| on:
Tell HN: C Experts Panel – Ask us anything about C
Why is shifting by a negative amount undefined?
kps
on April 14, 2020
[–]
Because people want `c = a << b` to compile into `shl c, a, b` and C89 made the giant mistake of calling it ‘undefined’ instead of ‘implementation-defined, possibly fatal’.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: