⌨️ap computer science principles review

Return Statement

Written by the Fiveable Content Team • Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examWritten by the Fiveable Content Team • Last updated September 2025

Definition

A return statement is used in a function to specify the value that should be returned when the function is called. It allows the function to send a value back to the code that called it.

"Return Statement" also found in: