Hacker News new | ask | show | jobs
by maratc 1869 days ago
As a slight nitpick to your slight nitpick, non-zero numbers, non-empty strings, non-void pointers, non-empty arrays and more are known to evaluate to TRUE in boolean contexts. So, values of 12L, "empty", &gender and [null] for the `married` variable would break your condition but not the original one.