Q. What is return value of a function.
Ans-
Answers
Answered by
1
Answer:
the return type depends on the task which the function performs
Answered by
0
Answer:
A return is a value that a function returns to the calling script or function when it completes its task. A return value can be any one of the four variable types: double, integer, object, or string. The type of value your function returns depends largely on the task it performs.
The variable type depends on the programming language you use.(e.g java or some other language)
Explanation:
Example function which returns string value
When you create a new function that returns a string value.
String Function MyFunction ()
{
// you code
return xyz;
}
Similar questions