which keyword
is used to give back the
Value
Answers
Explanation:
return keyword is used. Answer: Return keyword is used.
Answer:
Explanation:
Return keyword is used to give back the Value.
When a method's execution is finished, the return keyword is used to exit the method. When a method's return statement is reached, the application goes back to the code that called it. A method may return a value, a reference type, or it may not.
A function's int return value is its default. Unless otherwise specified, the compiler would return the integer value from the function as the default return value.
To return control from a function to the calling function, use the return keyword. Explaination: In the aforementioned example, fun() returns the value 10, which is allocated to the variable k in the main (). Additionally, main() gives the operating system a value of 0 (signifying successful execution).
#SPJ2