1 / 5

Functions & Subroutines

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.

cybil
Download Presentation

Functions & Subroutines

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Functions & Subroutines Page.chm

  2. 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> )

  3. Subroutine SUBROUTINE sName( <dum1>, … <,dumN> ) CALL sName( <arg1>, … <,argN> )

  4. Examples HTMLDOC

  5. Static & Dynamically Linked Libraries

More Related