Where's the error


When I use print in the same line where I passed the value to the trip cost then it gives no error and print what’s expected but if I use another line like the one below it gives unexpected result.


Where is the return value from your function call going? Have you tried printing that function call?

print function

gives the output your screenshot shows… An identifier stub showing the address in RAM where the function resides.

print function(arg)

gives the return value of the function call.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.