Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeConcepts
Return

Return

A return statement returns control from a function or method back to its caller.

Related concepts:  FunctionMethodCallControl Flow

Closest Wikipedia entry:  Return statement

Misconceptions about Return
14 documented Misconceptions

Any LanguageJavaJavaScriptPythonScratch
Check Yourself
Misconception
DeferredReturn
A return statement in the middle of a function doesn't return immediately
Misconception
InitReturnsObject
__init__ needs to return an object
Misconception
MultipleValuesReturn
Functions can return multiple values
Misconception
ReturnCall
Return statements need () around the return value
Misconception
ReturnUnwindsMultipleFrames
A return statement can unwind multiple call stack frames

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors