Top and Bottam
|
Light Poster
|
|
| 17Oct2007,12:02 | #1 |
|
Actually what do you mean by top to bottam and bottam to top.Can i have difference between top to bottam approach and bottam to top approach
|
|
Go4Expert Member
|
![]() |
| 17Oct2007,16:12 | #2 |
|
Just for an idea i will explain something:
Topdown Approach Execution starts from top of the program to the end... Eg: C program Code:
#include<stdio.h>
void test();
void main()
{
test();
}
void test()
{
printf("Test program");
}
In this program, Execution starts from top of the main function to the bottom ofthe test function.
Eg: Bottom -to -top approach(C++ program)
#include <iostream>
using namespace std;
class sample
{
public:
void test()
{
cout<<"Sample";
}
};
void main()
{
Sample s;
s.test();
}
Last edited by shabbir; 17Oct2007 at 16:17.. Reason: Code block |
|
Go4Expert Founder
|
![]() |
| 17Oct2007,16:18 | #3 |
|
seeguna, have code blocks for code snippets in the posts
|
|
Light Poster
|
|
| 23Oct2007,11:10 | #4 |
|
thanks for sending seeguna some explain on theortically with some languages if possible send me
|


