0

What would happen upon calling the function if i didnt add return result?

21st Jul 2016, 4:33 AM
Goitse
2 Antworten
0
You should get a compiler error, because you defined a return type, but doesn't provide a return value.
25th Jul 2016, 5:34 PM
Marco Neumann
Marco Neumann - avatar
0
When you don't add a return value to a function or statement, at compile time, the compiler will include a return value. Where a successful execution returns the value 0.
30th May 2017, 8:43 AM
Chuma Umenze