Programming Algorithms Question:

Give the difference of format between an algorithm and a sub algorithm?

Programming Algorithms Interview Question
Programming Algorithms Interview Question

Answer:

The format used is the same as for algorithms except that a return statement replaces an exit statement and a list of parameters follows the sub algorithms name. Although sub algorithms may invoke each other and that a sub algorithm may also invoke itself recursively


Previous QuestionNext Question
Define and state the importance of sub algorithm in computation and its relation ship with main algorithm?What is the general algorithm model for any recursive procedure?