#include <stdio.h> int main() { float a = 0.7; int c; c = a < 0.7; printf("%d", c); } Output printed is 1 though it is printing 0 for all cases except 0.7,7.7 and 0.9, why it is so??? Also it should be 0 because precedence of '<' operator is more than '=' operator
0.7? Other than that, ppeterka's link will contain the answer. Probably.