Call a function: Difference between revisions

m
→‎{{header|COBOL}}: Added extra note about OMITTED.
m (→‎{{header|COBOL}}: Corrected names.)
m (→‎{{header|COBOL}}: Added extra note about OMITTED.)
Line 180:
CALL "Optional-Arguments" USING Foo
CALL "Optional-Arguments" USING Foo Bar
*> If an optional argument is omitted and replaced with OMITTED, any following
 
*> arguments can still be specified.
CALL "Optional-Arguments" USING Foo OMITTED Bar
*> Interestingly, even arguments not marked as optional can be omitted without
*> a compiler warning. It is highly unlikely the function will still work,
Anonymous user