0
What would happen upon calling the function if i didnt add return result?
2 Antworten
0
You should get a compiler error, because you defined a return type, but doesn't provide a return value.
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.