
Patrick B. answered 06/13/19
Tutor
4.7
(31)
Math and computer tutor/teacher
On input, scanf matches %f with the address of the double, rather than float.
The type mismatch causes unpredictable results.
It will compile.
Output does not do this type checking.