#include int main() { int x = 0; if (x++) printf(\"true\\n\"); else if (x == 1) printf(
Post increment means that it returns the current value (in this case for the purpose of the if) and increments it afterwards. It is equivalent to
if
if(x) { x++; // ... } else { x++; // ... }