a) i is -10
b) i is not 0

Condition statements in C/C++ language are treated as TRUE if it is not FALSE or not zero. And FALSE when it is zero.
In the first case i is -10 which not zero, thus the condition is true.
In the second case i is zero, thus the condition is false and execution goes to the else statement.

About our authors: Team EQA

You have viewed 1 page out of 248. Your C learning is 0.00% complete. Login to check your learning progress.