Written by the Fiveable Content Team • Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 exam•Written by the Fiveable Content Team • Last updated September 2025
Definition
Procedures are reusable blocks of code that perform specific tasks when called. They help organize code into smaller sections for better readability and maintainability.
Related terms
Parameters/Arguments: Values passed into procedures that provide additional information for execution.
Return Statement/Value: The output or result produced by a procedure after it completes its task.
Function vs Procedure/Subroutine: - Functions return values while procedures do not.
- Functions are used to compute and return a result, while procedures are used to perform actions or tasks.