Site icon Pathshala Nepal

Write the syntax and function of DECLARE statement.

Modular programming
Online Calculator

Write the syntax and function of DECLARE statement.


1 Answer


It is a nonexecutable statement that is used to declare or define a sub or a function procedure with or without parameters. It must be the first line in a modular program.

Syntax

DECLARE SUB/FUNCTION procedureName (Parameters)

Example

DECLARE FUNCTION AREA (B, H)
DECLARE SUB INTEREST (P, T, R)

Topics from Computer
Related Questions