6
Functions and Procedures
Procedures and functions are essential concepts in programming that allow developers to break down complex tasks into smaller, manageable pieces of code that can be reused throughout a program.
A procedure is a named section of code that performs a specific task. The procedure does not return a value and typically modifies data within the program. Procedures are used to group related tasks, such as input/output operations or data validation, and can be called from other program parts.
A function is a named section of code that returns a value. It may or may not modify data within the program. Functions are used to perform specific calculations or operations and can be called from other parts of the program.
Both procedures ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access