Compound condition in C: if (0.0 < a < 1.0)
Because of left-to-right associativity of < operator the expression condition (0.0 < a < 1.0) means ((0.0 < a) < 1.0) == 1 < 1.0 or 0 < 1.0 depending on value of a. So no, its not identical to if (0.0 < a && a < 1.0) (perhaps you might confusing from Python compassion … Read more