Skip to main content

⌨️ap computer science principles review

Return Statement in AP Computer Science Principles

Verified for the 2027 exam
Verified for the 2027 exam•Fiveable Content Team

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.

This definition is part of Fiveable's AP Computer Science Principles review, which also has guided practice questions.

"Return Statement" also found in: