Reply To: doubt on comparision operator

Home Forums C Programming doubt on comparision operator Reply To: doubt on comparision operator

#3232

Actually when we compare, compiler checks the type.. one u declared as float and other is number.. the default one the compiler takes in decimal format as double.. So, in representation double as 8 bytes and accurate value is entered.. while float contains 4 bytes and is comparitively less accurate than double.. So, double having atleast some minute value greater than float value.. thats why its value is true and hence value is one..

Share
Tweet
Share
Pin
+1