190R6 Predifined Code

A pre-defined function is built into the language to handle basic functions. The Windows equivalent would be, or example, PRINT, or FILE SAVE.

Most programming languages have pre-defined functions built in, such as

  • finding an average number
  • determining the length of a string
  • handling dates, times, etc
  • opening, reading, writing to and closing files

Ex 1

Take a look at 2 common languages – what predefined code is available to the programmer?