What is the difference between top down approach and bottom up approach in programming languages?
Answer:
-Top down approach and bottom up approach are involved in software development. These approaches are not involved in program execution. Structure/procedure oriented programming languages like C programming language follows top down approach. Whereas object oriented programming languages like C++ and Java programming language follows bottom up approach.
-Top down approach begins with high level design and ends with low level design or development. Whereas, bottom up approach begins with low level design or development and ends with high level design.
-In top down approach, main() function is written first and all sub functions are called from main functions.
Then sub functions are written based on the requirements. Whereas, in bottom up approach, code is developed for modules and then these modules are integrated with main() function.
-Nowadays, both approaches are combined together and followed in modern software design.