what is o/p and explain why like that for below c program

{
float x=1.1;
while(x==1.1)
{
printf("%f\n",x);
x=x-0.1;
}
return 0;
}

i think no output :confused:

as x is of float type and 1.1 is of type double so they cant be equal so control will not enter the loop so control will directly go to return 0; statement

1 Like