50 likes | 188 Vues
This document explores the key concepts of functions and subroutines in programming. It covers various types of functions, including intrinsic, statement, external, and recursive functions. You will learn how to define and call functions, including examples of their syntax and usage. The document also provides insights into the differences between static and dynamically linked libraries, enhancing your understanding of how to organize and manage code effectively. Ideal for programmers at all levels looking to deepen their knowledge of function implementation.
E N D
Functions & Subroutines Page.chm
Functions • Intrinsic Functions • Statement Functions • External Functions Recursive Function RECURSIVE<type> FUNCTION fName ( <dum1> <,dum2> … < ,dumN> ) RESULT(var) <type> fName( <dum1> <,dum2> … < ,dumN> ) = expression <type>FUNCTION fName( <dum1> <,dum2> … < ,dumN> ) var =fName( <arg1> <,arg2> … < ,argN> )
Subroutine SUBROUTINE sName( <dum1>, … <,dumN> ) CALL sName( <arg1>, … <,argN> )
Examples HTMLDOC