Question: Under what circumstance would you put a return statement in a function even when there is no return value required for the function Group of
Under what circumstance would you put a return statement in a function even when there is no return value required for the function
Group of answer choices
That should never happen; bad coding style When there are multiple conditional blocks inside the function and only one or some of the blocks would be executed, you have return statements at the end of a number of blocks.
It is a syntax requirement; a function must have a return statement regardless
This question is invalid; if there is no value to be returned, you can't have a return statement a runtime error will occur.
When there are multiple conditional blocks inside the function and only one or some of the blocks would be executed, you have return statements at the end of a number of blocks.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
