Function prototype: Difference between revisions
Content deleted Content added
initial PL/I example |
m →{{header|COBOL}}: Removed baseless note. |
||
Line 86: | Line 86: | ||
=={{header|COBOL}}== |
=={{header|COBOL}}== |
||
Prototypes were introduced in COBOL 2002 |
Prototypes were introduced in COBOL 2002. 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. |
<lang cobol> *> A subprogram taking no arguments and returning nothing. |