subroutines can be either functions or procedures., Parameters are the values that can be passed to a subroutine, Functions always return values, procedures do not., A library contains many useful extra functions., If you use subroutines there is less likely to be coding errors., Once a subroutine is written it is fully tested it can be reused., A variable with a global scope can be seen everywhere in the program., A variable with a local scope can only be seen in the subroutines they are defined in.,

Why use subroutines and variable scopes

Classifica

Stile di visualizzazione

Opzioni

Cambia modello

Ripristinare il titolo salvato automaticamente: ?