Help with hwk issue.

Last edited on
Depends on the context. Functions that return true or false or check for a particular scenario will always have a return statement somewhere inside the code and an default return statement as the last line of code in the function.

Functions that compute have one return statement most of the time. And this return statement will most likely be the last statement of the code. Example being some interesting cases of dynamic programming.

You should post your code then more help can be provided
Why did he erase his post?
Topic archived. No new replies allowed.