Cards (2)

  • What is a subroutine
    A set of self-contained lines of cose that is given a unique name
  • Advantages of a subroutine(4)
    • Easier to test and debug as each subroutine is self-contained
    • Large projects can be be developed by more than one programmer
    • Saves time as programmer doesn't have to rewrite repeating code
    • Subroutines can be called at any time