void main() { float a = 0.7; if (a < 0.7) printf(\"c\"); else printf(\"c++\"); }
In the above question for 0.7, \"
Floating point comparisons are not reliable, whatever you do. You should use threshold tolerant comparison/ epsilon comparison of floating points.
Try IEEE-754 Floating-Point Conversion and see what you get. :)