int main()
{
float f=0.5;
if(f==0.5)
printf("True\n");
else
printf("False\n");
}
The answer is True in this case. If i take f value as 0.1 or 0.2 or 0.3 etc, the answer is False. Can anyone explain the reason for this.