Computer Science, asked by jnandani038, 11 months ago

Q. What is return value of a function.
Ans-​

Answers

Answered by yashona
1

Answer:

the return type depends on the task which the function performs

Answered by srimurthy3
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