13,420
edits
Changes
→INVESTIGATION 1: USING FUNCTIONS
:Usually, a '''function''' will '''contain programming code''' in some part of the main program (most likely near the '''top''' of the program '''BEFORE''' the main program). We refer to that as '''"Defining the functiondeclaration"'''.: When a program is run, the '''function's code is read into internal memory''', ready to be run when the function is '''run''' (i.e. referred to as '''calling the function is "called"'''). By '''calling the function''' the function is run automatically.
:When creating programs that define and use functions, '''a large programming task can be broken-down into smaller elements''' (or '''modules'''). This is why creating programs that use functions is referred to as '''"modular programming"'''.