Click here to Skip to main content
11,480,938 members (45,239 online)

Atul Khanduri asked:

Open original thread
Hi all,

I am very confused about the approaches used by C and C++ languages.
I know C uses "Top Down" while C++ uses "Bottom Up".
But i don't know why. I mean i am not getting the proper explanation.

Somewhere i read:

First thing Top down and bottom up are designing approaches.
As simple, in top down approach,first we are designing the
main module(i.e main function) and in that we will decide
what all other modules to be include then we will design all
other sub modules..this approach is used C prog language.

In bottom up approach, just contrast to top down,first we
design all the sub modules related to application then we
design main module and in that we will decide what are the
modules to be include.. for ex: we can design any no of
classes and in main only required classes and their
functions can be used ...this approach is used in c++ ......


But i am not sure that this would be the proper answer.

Is there any other reason??

And what about C# and JAVA??
Tags: C++, C

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the The Code Project Open License (CPOL).



Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 26 Mar 2009
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100