+ 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");

26th May 2019, 3:51 PM
Shubham Tandale
Shubham Tandale - avatar
1 Respuesta
+ 2
You're comparing a float and a double https://www.sololearn.com/Discuss/1477626/?ref=app
26th May 2019, 4:00 PM
Anna
Anna - avatar