Skip to main content

1988 | OriginalPaper | Buchkapitel

Parameters

verfasst von : Professor Niklaus Wirth

Erschienen in: Programming in Modula-2

Verlag: Springer Berlin Heidelberg

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Procedures may be given parameters. They are the essential feature that make procedures so useful. Consider again the previous example of procedure Add. Very likely a program contains several arrays to which the procedure should be applicable. Redefining it for each such array would be cumbersome, inelegant, and can be avoided by introducing its operand as a parameter as follows.

Metadaten
Titel
Parameters
verfasst von
Professor Niklaus Wirth
Copyright-Jahr
1988
Verlag
Springer Berlin Heidelberg
DOI
https://doi.org/10.1007/978-3-642-83565-0_12