Write any two features of return statement
Answers
Answered by
2
Answer:
A return statement ends the execution of a function, and returns control to the calling function. Execution resumes in the calling function at the point immediately following the call. A return statement can return a value to the calling function. For more information, see Return type.
Answered by
1
Answer:
• return statement should be the last statement of the function.
• A function can not return two statements. (logically one return statement only to get executed)
• We cannot return two values’ return a, b
• We can return expression return (a*b+c)
Explanation:
Similar questions