Skip to content
← Back to glossary

戻り値Return value

Learn in the textbookInput/Output and Procedures & Functions

DefinitionA return value (戻り値) is the value a function gives back to the caller as its result, and it is the block's output.

ExplanationThe type of the return value matches the type written before the name in the function's declaration line. The caller can assign the returned value to a variable or use it for display or the next calculation.

AnalogyIt is like clothes left at a dry cleaner coming back finished: the item you get back is the return value.

Memory hookIn English it is a return value, the same word as return, the pseudo-language instruction that gives a value back, so look after return to see what comes back.

Related past-exam questions(9 questions)