#include<stdio.h>#include<conio.h>void main(voif){float a=0.9,b=0.9;double c=0.9;if(a<b)printf("yes for b");elseprintf("no for b");if(a<c)printf("nyes for c");elseprintf("nno for c");getch(); }Output: no for byes for c
When a = 0.7internally compiler treats 0.7 as double. Now a is a float and float is always small then double so the if condition is true and answer will beYES