4 ms·
Zero as the absence of something definitely makes more sense as false than true. It is the case for these common C idioms: while(p) { // do somethi
by userbinator 9mo ago
Zero as the absence of something definitely makes more sense as false than true. It is the case for these common C idioms:
while(p) {
// do something with p
...
p = p->next;
}
if(err=foo()) {
printf("Error %d occurred\n", err);
...
}