Home › Forums › C Programming › doubt on comparision operator › Reply To: doubt on comparision operator
September 10, 2007 at 6:28 am #3232
Shailesh Kumar Gautam
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..