+ 1
It's output is not equal... How's that?
float f1 = 0.1; if (f1 == 0.1) printf("Equal\n"); else printf("Not equal\n");
1 Answer
+ 2
You're comparing a float and a double
https://www.sololearn.com/Discuss/1477626/?ref=app
float f1 = 0.1; if (f1 == 0.1) printf("Equal\n"); else printf("Not equal\n");