Prashant | Sat, 18 Jul, 2020 | 131
In this approach, a large project divides into small programs, and these programs are known as modules.
C programming supports this approach for developing projects. It is always good idea that decomposing solution into modules in a hierarchal manner.
The basic task of a top-down approach is to divide the problem into tasks and then divide tasks into smaller sub-tasks and so on.
In this approach, first we develop the main module and then the next level modules are developed. This procedure is continued until all the modules are developed.
Advantages of top-down approach:
C++ used the bottom-up approach for project development. It is an alternative approach to the top-down approach.
In this approach, bottom level modules developed first (Lower level module developed, tested and debugged). Then the next module developed, tested and debugged. This process is continued until all modules have been completed.
This approach is exactly opposite to the top-down approach. This approach is good for reusability of code.