Fahrenheit example - functions


#1

New to programming - and I understand the ‘function’ example for converting fahrenheit to celsius, however I am baffled on where the value of zero is assigned to ‘cel’ - is it because the float expects a number unless one is assigned it is defaulted to zero? Thanks…


#2

The 0 is sent from main, via the freezeInC variable. It is set to 0, and is passed as the argument when fahrenheitFromCelsius is invoked.


#3

Thank you!!!