Comparing Floating Point Variable With a Value In C Programming

Опубликовано: 08 Июль 2020
на канале: Technotip
11,448
153

https://technotip.com/8546/comparing-...

In this video tutorial lets see how we can compare a floating point variable with a constant value, and lets see the result.

The Problem
If you assign 0.7 to a floating point variable num and then inside if condition you check if num == 0.7, it returns false. Because here variable num is of data type float and the constant value 0.7 is considered as double type data.

C Programming Interview / Viva Q&A List
https://technotip.com/6378/c-programm...

C Programming: Beginner To Advance To Expert
https://technotip.com/6086/c-programm...


На этой странице сайта вы можете посмотреть видео онлайн Comparing Floating Point Variable With a Value In C Programming длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Technotip 08 Июль 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 11,448 раз и оно понравилось 153 зрителям. Приятного просмотра!