hamburger

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++?

  1. Top-down approach
  2. Bottom-up approach
  3. Right-left approach
  4. Left-right approach

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:

Our Apps Playstore
POPULAR EXAMS
SSC and Bank
Other Exams
GradeStack Learning Pvt. Ltd.Windsor IT Park, Tower - A, 2nd Floor, Sector 125, Noida, Uttar Pradesh 201303 help@byjusexamprep.com
Home Practice Test Series Premium