To return value 10 from a function myfunction, which of the following statements is correct ?
Answers
Answered by
1
Answer:
THERE IS NOT ANY STATEMENT
Answered by
0
One can get the return value from the function, when one is calling the function by making use of the object of the class.
The object is used to call the members or the functions in the class.
Explanation:
when one declare a method's return type in its method declaration it os within the body of the method, one cam use the return statement to return the value.
Any method declared void doesn't return a value.The return keyword is used to return from a method when its execution is complete. A method can return a value or reference type or does not return a value.
In computer programming, the return type defines and constrains the data type of the value returned from a subroutine or method.
Similar questions