Sign In
Ask Question
Kai
Computers & Technology
7 April, 19:35
How do you return a value from a function?
+5
Answers (
1
)
Tyler Bartlett
7 April, 19:54
0
return instruction used to return a value from a function.
Explanation:
Function is a block of statement which perform the special task.
Syntax for define a function:
type name (parameter_1, parameter_2, ...)
{
statement;
return variable;
}
In the syntax, type define the return type of the function. It can be int, float, double and also array as well. Function can return the array as well.
return is the instruction which is used to return the value or can use as a termination of function.
For return the value, we can use variable name which store the value or use direct value.
Comment
Complaint
Link
Know the Answer?
Answer
Not Sure About the Answer?
Find an answer to your question 👍
“How do you return a value from a function? ...”
in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers
You Might be Interested in
A word root is used to link a suffix that begins with a vowel. Which of the following words is an example of this rule? Group of answer choices1. scler/osis therm/o/meter 2. cardi/o/centesis 3. enter/o/lysis 4. cardi/o/megaly
Answers (1)
How does making a phone differ when using public phone box and cell phone
Answers (1)
Who was the inventor of the printing press?
Answers (1)
Which of the following describes a VPN? a. A hardware and software solution for remote workers, providing users with a data-encrypted gateway through a firewall and into a corporate network b.
Answers (1)
How does a line conditioning UPS protect network equipment? a. It reduces fluctuations in incoming voltage. b. It shields equipment from lightning damage. c. It filters line noise from incoming power. d. It protects against electrical surges.
Answers (1)
New Questions in Computers & Technology
Why would a person who handles electronic components wear a grounded wrist strap
Answers (1)
In binary, the second digit from the right is multiplied by the firstzerothsecond power of two, and the fourthfifthsixth digit from the right is multiplied by the fourth power of two.
Answers (1)
Software that people commonly use in the workplace to make their lives easier is called what?
Answers (1)
Which file extension indicates a text document? A-. txt B-. ppt C-. tst D-. pdf
Answers (2)
From the followings options, which is NOT a true format for SUM formula? a) = sum (a1:b5:c5) b) : sum (a1, b5, c5) c) : sum (a1 : b5, c5) d) : sum (al:b5, c1:c5)
No Answers
Home
»
Computers & Technology
» How do you return a value from a function?
Sign In
Sign Up
Forgot Password?