Question: what is if( x) in c?
Answer: 3. An int converts implicitly to a bool . Any int that's non-zero evaluates to true . A zero integer converts to false . In your case, that line basically tests whether x is different from zero, and it is equivalent with if(x != 0) ...