Which of the following approach is adapted by C++?
By BYJU'S Exam Prep
Updated on: September 25th, 2023

Which of the following approach is adapted by C++?
- Top-down approach
- Bottom-up approach
- Right-left approach
- Left-right approach
Table of content
Answer: B. Bottom-up approach
Bottom-up approach is adapted by C++.
Solution
C++ uses a bottom-up approach while C follows a top-down approach.
According to the Top-Down Approach, we first write the main function, which calls stubs, and then divide these stubs into smaller stubs until the actual job, which is coded in the final files, needs to be done.
In a bottom-up technique, the first step is to assemble small parts that do the essential tasks needed to make the entire program work. Then put them together using custom code, and finally put these pieces together to create the main procedure. Hence, the Bottom-up approach is adapted by C++.
☛ Related Questions: