Skip to content

Functions

A function returns one value

  • A function is like a procedure, and it also hands one value back.
  • The definition says the type of that value: RETURNS INTEGER.
  • RETURN sets the value. It is normally the last line of the function.

A procedure is used with CALL and does a job; a function returns a value

Handout

Log in or create account

IGCSE, A-Level & AP