Function prototype: Difference between revisions

m
→‎{{header|COBOL}}: Removed baseless note.
(initial PL/I example)
m (→‎{{header|COBOL}}: Removed baseless note.)
Line 86:
=={{header|COBOL}}==
 
Prototypes were introduced in COBOL 2002, and are typically used by <code>COPY</code>ing the copybook in which they are contained into the beginning of the source file. In the following examples, <code>PROGRAM-ID</code> and <code>PROGRAM</code> can be replaced with the equivalents for functions and methods. However, in method prototypes the <code>PROTOTYPE</code> clause is not used.
 
<lang cobol> *> A subprogram taking no arguments and returning nothing.
Anonymous user