This code prints both "equal" and "1 0".
Why is this happening even though 1 != 0
?
if(2/2 == 2/2.0)
printf("equal \n");
printf("%d %d", 2/2, 2/2.0);
This code prints both "equal" and "1 0".
Why is this happening even though 1 != 0
?
if(2/2 == 2/2.0)
printf("equal \n");
printf("%d %d", 2/2, 2/2.0);