Question:
What is a subroutine?
Author: Christian NAnswer:
Parts of a program can also be formulated elsewhere as a subroutine (subprogram), where the control flow • branches there if required (call) and • returns to the place of the call after the subroutine has terminated (return). We use subroutines to • factor out common parts of an algorithm for reuse • structure larger programs in »digestible units« (modules)
0 / 5 (0 ratings)
1 answer(s) in total