Total Pageviews

February 15, 2012

Procedures and modules:


The program can thus be broken down into modules; and the preferred way of writing a program is to code each of these tasks as a separate procedure. The main program will then reflect the top-level solution and call each of these procedures in turn
Points to remember:
  • Each procedure is given a name, and has the same structure as a program.
  • The procedure is called from the main procedure simply by writing its name.
  • Any procedure that is called must be written before it is called; that is, it must be placed physically above the statements in the main program.

No comments:

Post a Comment