We know that any numbers that are not equal to 0 are viewed as true in C, so we can write:
0
true
int a = 16; while (a--) printf(\"%d
It happened because of the Relational Operators in your printf statement.
printf
Operator == and operator !=
==
!=
Since (0 == 0) holds true so, it gives a value 1
(0 == 0)
1
whereas, (0 != 0) doesn't hold true so, gives a value 0 .
(0 != 0)