2021-02-22 17:48:14 +00:00

286 B

RETURN statement

it is used to return from a function and can be used anywhere within a function

syntax

  1. RETURN ( return nil )
  2. RETURN expression ( evaluates expression and returns value )

any return value must match with the type defined while declaring function