Falsehoods programmers believe about languages
Falsehoods programmers believe about languages
Every language has words for yes and no.
Assuming yes and no means true and false, c has numbers (1, 0) for yes and no and c++ can use those numbers for yes and no because it is a superset of c.
As far as C goes, 1 is true and 0 is false.
In terms of POSIX exit codes, 0 is success and 1 is error.
Jesus. I mistyped that horrendously to make a point about !0
I read my comment just now waking up and went wtf