Top-Down Approach in C Language

TOP-DOWN APPROACH

In this approach, a large project divides into small programs and these program are  known as modules.

C programming  language 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 we develop the  main module and then the next level modules are developed. This procedure is continued until all the modules are developed.

The top-down approach basically divides a complex problem or algorithm into multiple smaller parts(modules). These modules are further decompose until the resulting module is the fundamental program essentially be understood and can not be further decomposed. After achieving a certain level of modularity, the decomposition of modules is ceased. The simpler and smaller modules to organize and code program in a efficient way. The flow of control in this approach is always in the downward direction. The top-down approach is implemented in the "C" programming language by using function.


ADVANTAGE OF TOP-DOWN APPROACH


1. In this approach first we develop and test most important module.

2. This approach is easy to see the progress of the project by developer or customer.

3. Using the approach, we can utilize computer resource in a proper manner according to         the  project.

4. Testing and debugging is  easier and efficient.

5. In this approach, project implementation is smoother and shorter.

6. This approach is good for detecting and correcting time delays.





Comments