ANS:c 0.7f is float constant. Its binary value is written in 32 bit. 0.7 is double constant(default). Its binary value is written in 64 bit. 0.7L is long double constant. Its binary value is written in 80 bit. binary value of 0.7=(0.1011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011) now here a is a float variable while 0.7 is double constant .so a contain only 32 bit value i.e a=0.1011 0011 0011 0011 0011 0011 0011 0011 while 0.7=0.1011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011.... It is obvious a<0.7>
very good explanation sir i have understood it but i have heard that 0.7 will store in memory space as 0.699999999 some what so it will be less than 0.7 therefore it prints c sir did my explanation is correct or not