Saltar al contenido

Funciones

English

A function returns one value

  • A function is like a procedure, but it also hands one value back to the line that called it.
  • The first line gives the type of that value after RETURNS: RETURNS INTEGER.
  • Inside the function, RETURN hands the value back. The function stops there.
  • ENDFUNCTION closes the definition, like ENDIF closes an IF.

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

Material

Iniciar sesión o crear cuenta

IGCSE, A-Level & AP