Mark Shroyer personal blog
Both true and false: a Zen moment with C
I ran into a really fun bug at work yesterday, where I discovered that my C program was branching down logically inconsistent code paths. After drinking another cup of coffee and firing up GDB I realized that somehow, a boolean variable in my code was simultaneously testing as both true and not true.
- Points
- 177
- HN comments
- 51
- Submissions
- 1
- Cited by
- 4 commenters
Programming LanguagesSoftware Engineering2012
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Jun 27, 2012 | Both true and false: a Zen moment with C by Niten | 177 | 51 |
Cited in comments
Linked from 4 Hacker News comments by 4 different people, from Aug 2014 to Nov 2022.
Most recent:
- MaxBarraclough · Nov 30, 2022
- throwawa9999 · Oct 17, 2019
- Contero · Jun 27, 2018
- regehr · Aug 27, 2014