2.6.2: understand the concept of passing data into and out of subprograms (procedures, functions)
Keyword | Definition |
---|---|
Function | subprogram that can have parameters and always returns a value |
Parameter | data that can be passed from one part of code into a subprogram |
Procedure | subprogram that can have parameters but doesn't return a value |
Return value | data that is passed out of a function back to the part of code that called that function |
Subprogram | a procedure or function (a reusable section of code with a name) |