Sub programs 1

  • Created by: Tomiwaq
  • Created on: 07-05-19 18:23
View mindmap
  • Sub programs
    • Procedures and functions
      • Procedures are sets of instructions stored under one name
      • Functions are sets of instructions that return a value
      • Procedures and functions are good for repeat codes
      • High-level programming languages have common procedures and functions built in
      • In most sub programs there are parameters and arguments
        • Parameters
          • Special variables used to pass values into a sub program
        • Arguments
          • The actual values that the parameters take
    • Procedures
      • Procedures don't have to take parameters
      • Procedures are called by typing their name
      • Procedures don't return a value
    • Functions
      • Functions take at least one parameter and they must always return a value
      • Functions should be used in statements or variables


No comments have yet been made

Similar Computing resources:

See all Computing resources »See all Programming resources »