Programming Algorithms Question: Download Questions PDF
Define and state the importance of sub algorithm in computation and its relation ship with main algorithm?
Answer:
A sub algorithm is an independent component of an algorithm and for this reason is defined separately from the main algorithm. The purpose of a sub algorithm is to perform some computation when required, under control of the main algorithm. This computation may be performed on zero or more parameters passed by the calling routine.
Download Programming Algorithms Interview Questions And Answers
PDF
Previous Question | Next Question |
Counting set bits in a number | Give the difference of format between an algorithm and a sub algorithm? |