Anonymous user
Call a function: Difference between revisions
m
→{{header|ZX Spectrum Basic}}
(→{{header|C}}: optional arguments, boo-yah) |
|||
Line 376:
20 PRINT FN a(5): REM The function is used in first class context. Arguments are not named
30 PRINT FN b(): REM Here we call a function that has no arguments
40 REM
50 LET n=1: REM This variable will be visible to the called subroutine
60 GO SUB 1000: REM subroutines are called by line number and do not have names
|