Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sold
on Feb 13, 2015
|
parent
|
context
|
favorite
| on:
C99 tricks
I see, thanks.
smorrow
on Feb 13, 2015
[–]
"The C Companion" gives logical identities like
(A && B) || (A && !B) == A,
but what he means by A on the RHS, I think, is that you must take into account the fact that A_LHS might be zero. You can't really write this identity and give a constant on the right, so he wrote the next best thing.
Well, the real next best thing would be !(!A).
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: