procedural programming
procedural programming
PROGRAMMING
Ankit S. Chitnavis
Introduction :-
Procedural programming is the standard approach used in traditional
computer language such as C, Pascal, FORTRAN & BASIC.
The basic idea is to have a program specify the sequence of steps that
implements a particular algorithm .
When changes are made to the main procedure (top), those changes can
cascade to the sub procedures of main, and the sub-sub procedures and
so on, where the change may impact all procedures in the pyramid.
What happens when 2 or more functions work on the same data member ?
If there are 10 functions in a program, all these 10 functions can access a
global data member. It is possible one function may accidentally change
values of this global data member.
If this data member is a key element of the program, any such accidental
manipulation will affect the whole program. It will be too difficult to debug &
identify which function is causing the problem if the program is really big.
Fibonacci series program in c using recursion
Applications
Advantages of Procedural Programming: