Functions and Procedures
Subroutines are named blocks of code that can be reused. You will learn the difference between a procedure and a function, and how parameters pass data in.
Key terms
- Procedure
- A named block of code that performs a task. It does not return a value.
- Function
- A named block of code that returns a value.
- Parameter
- A value passed into a subroutine.
- Subroutine
- A procedure or function. Using them avoids repeating code and improves program structure.
Part of Programming.