No it is not like that if u write 0.7 then it will be taken as double and if u write 0.7f then it will be taken as a float value.
Type: Posts; User: akshayabc
No it is not like that if u write 0.7 then it will be taken as double and if u write 0.7f then it will be taken as a float value.
I have 2 problems in C regarding floating point, please help :
Q1
Output of the following code- C.
main()
{
float a=0.7;
if(a<0.7)