3 ms·
Fortran has subroutines and functions. Functions can take multiple arguments and return a single value (however arguments can also be modified). Subroutines can
by retzkek 4y ago
Fortran has subroutines and functions. Functions can take multiple arguments and return a single value (however arguments can also be modified). Subroutines can take multiple arguments, which can be inputs, outputs, or both (arguments can be declared inputs or outputs, but it's not required) and don't return a value. And then there's common blocks for sharing variables between subroutines...
- fortran77 4y agoAnd many languages that were influenced by it, from PL/I to CMS-2 (Both of which I used in my first years as a computer programmer)
- TheRealKing 4y agoCommon blocks have been outdated for the past >33 years. Modules have been the proper modern safer way of sharing data and procedures since 1990.