⌨️ap computer science principles review

Return Statement

Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2027 exam
Verified for the 2027 examWritten by the Fiveable Content Team • Last updated August 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.

AP course connection

Topic 3.13: 3.13 Developing Procedures

Unit 3

"Return Statement" also found in:

2,589 studying →