Jump to content

Call a function: Difference between revisions

m
(→‎{{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 parameterssubroutines cannot be passed parameters, however variables are global
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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.