SlideShare a Scribd company logo
2
Most read
3
Most read
6
Most read
PROCEDURAL
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 .
Procedural programming is a term used to denote the way in which a
computer programmer writes a program.
This method of developing software, which also is called an application,
revolves around keeping code as concise as possible. It also focuses on a
very specific end result to be achieved.
Procedural programming creates a step by step program that guides the
application through a sequence of instructions. Each instruction is
executed in order.

Procedural programming focuses on processes. In procedural
programming data and functions are stored in separate memory location,
while in OOP data and functions are stored in same memory location.

Programs are made up of modules, which are parts of a
program that can be coded and tested separately, and then assembled to
form a complete program.
In procedural languages (i.e. C) these modules are procedures, where a
procedure is a sequence of statements.
In C for example, procedures are a sequence of imperative statements, such as
assignments, tests, loops and invocations of sub procedures. These procedures
are functions, which map arguments to return statements.
The design method used in procedural programming is called
Top Down Design.
This is where you start with a problem (procedure) and then
systematically break the problem down into sub problems (sub
procedures).
This is called functional decomposition, which continues until a sub
problem is straightforward enough to be solved by the corresponding sub
procedure.

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.
The problem with PP approach is its handling of data. PP approach gives
no importance to data. By ‘data’ we mean the information collected from
user, the new results obtained after calculations etc.
In C, a data member must be declared GLOBAL inorder to make it accessible
by 2 or more functions in the program.
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

#include<stdio.h>
int Fibonacci(int);
main()
{
int n, i = 0, c;
printf("Enter the number of
termsn");
scanf("%d",&n);
printf("Fibonacci seriesn");
for ( c = 1 ; c <= n ; c++ )
{
printf("%dn", Fibonacci(i));
i++;
}
return 0;
}

int Fibonacci(int n)
{ if ( n == 0 )
return 0;
else
if ( n == 1 )
return 1;
else
return ( Fibonacci(n-1) +Fibonacci(n-2));
}
System Software

Applications
Advantages of Procedural Programming:
Its relative simplicity, and ease of implementation of compilers and
interpreters.
The ability to re-use the same code at different places in the program without
copying it.
An easier way to keep track of program flow.
 The ability to be strongly modular or structured.
Needs only less memory.
Disadvantages of Procedural Programming:
Data is exposed to whole program, so no security for data.
Difficult to relate with real world objects.
Difficult to create new data types reduces extensibility.
Importance is given to the operation on data rather than the data.
Thank
You

More Related Content

What's hot (20)

PPT
Coupling and cohesion
Sutha31
 
PPTX
INLINE FUNCTION IN C++
Vraj Patel
 
PDF
Oops concepts || Object Oriented Programming Concepts in Java
Madishetty Prathibha
 
PPTX
Programming paradigm
busyking03
 
PDF
Control statements
Kanwalpreet Kaur
 
PPTX
OOP Introduction with java programming language
Md.Al-imran Roton
 
PDF
Object oriented programming c++
Ankur Pandey
 
PPTX
Page replacement algorithms
Piyush Rochwani
 
PPT
Modular programming
Mohanlal Sukhadia University (MLSU)
 
PPTX
Software design
Syed Muhammad Hammad-ud-Din
 
PPTX
File handling in Python
Megha V
 
PPTX
A Role of Lexical Analyzer
Archana Gopinath
 
PPTX
object oriented Programming ppt
Nitesh Dubey
 
PPTX
Software project estimation
inayat khan
 
PPTX
Introduction to Software Engineering
Saqib Raza
 
PPTX
Dynamic memory allocation
Viji B
 
PPT
Control structure C++
Anil Kumar
 
PPTX
Data types in java
HarshitaAshwani
 
PPTX
Unit 4 sp macro
Deepmala Sharma
 
Coupling and cohesion
Sutha31
 
INLINE FUNCTION IN C++
Vraj Patel
 
Oops concepts || Object Oriented Programming Concepts in Java
Madishetty Prathibha
 
Programming paradigm
busyking03
 
Control statements
Kanwalpreet Kaur
 
OOP Introduction with java programming language
Md.Al-imran Roton
 
Object oriented programming c++
Ankur Pandey
 
Page replacement algorithms
Piyush Rochwani
 
File handling in Python
Megha V
 
A Role of Lexical Analyzer
Archana Gopinath
 
object oriented Programming ppt
Nitesh Dubey
 
Software project estimation
inayat khan
 
Introduction to Software Engineering
Saqib Raza
 
Dynamic memory allocation
Viji B
 
Control structure C++
Anil Kumar
 
Data types in java
HarshitaAshwani
 
Unit 4 sp macro
Deepmala Sharma
 

Similar to Procedural programming (20)

PPTX
program development and paradigms
kasenerd
 
PPTX
Introduction to problem solving in C
Diwakar Pratap Singh 'Deva'
 
PPTX
Programming C ppt for learning foundations
ssuser65733f
 
PDF
Book management system
SHARDA SHARAN
 
PPT
Overview of c++
geeeeeet
 
DOC
Stnotes doc 5
Alok Jain
 
DOCX
PROBLEM SOLVING
shahzadebaujiti
 
PPTX
module1 new c programming for begginers.pptx
amruthavarshini849703
 
PPTX
Programming_Lecture_1.pptx
shoaibkhan716300
 
PPT
Problem Solving Techniques
Ashesh R
 
PPTX
What is algorithm
mshoaib15
 
PPT
Unit 1 python (2021 r)
praveena p
 
PPTX
Introduction to computer science
umardanjumamaiwada
 
PPTX
lecture 5
umardanjumamaiwada
 
PPTX
PCCF UNIT 1.pptx
DivyaKS12
 
PPTX
PDLC.pptx
marysj3
 
DOCX
Training 8051Report
Kuldeep Kaushik
 
PPTX
Design programing logic powor point.pptx
hailish4421ict
 
program development and paradigms
kasenerd
 
Introduction to problem solving in C
Diwakar Pratap Singh 'Deva'
 
Programming C ppt for learning foundations
ssuser65733f
 
Book management system
SHARDA SHARAN
 
Overview of c++
geeeeeet
 
Stnotes doc 5
Alok Jain
 
PROBLEM SOLVING
shahzadebaujiti
 
module1 new c programming for begginers.pptx
amruthavarshini849703
 
Programming_Lecture_1.pptx
shoaibkhan716300
 
Problem Solving Techniques
Ashesh R
 
What is algorithm
mshoaib15
 
Unit 1 python (2021 r)
praveena p
 
Introduction to computer science
umardanjumamaiwada
 
lecture 5
umardanjumamaiwada
 
PCCF UNIT 1.pptx
DivyaKS12
 
PDLC.pptx
marysj3
 
Training 8051Report
Kuldeep Kaushik
 
Design programing logic powor point.pptx
hailish4421ict
 
Ad

Recently uploaded (20)

PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PDF
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
PDF
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PDF
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PPTX
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PDF
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
PDF
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PPTX
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
Dimensions of Societal Planning in Commonism
StefanMz
 
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
Ad

Procedural programming

  • 2. 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 . Procedural programming is a term used to denote the way in which a computer programmer writes a program. This method of developing software, which also is called an application, revolves around keeping code as concise as possible. It also focuses on a very specific end result to be achieved.
  • 3. Procedural programming creates a step by step program that guides the application through a sequence of instructions. Each instruction is executed in order. Procedural programming focuses on processes. In procedural programming data and functions are stored in separate memory location, while in OOP data and functions are stored in same memory location. Programs are made up of modules, which are parts of a program that can be coded and tested separately, and then assembled to form a complete program.
  • 4. In procedural languages (i.e. C) these modules are procedures, where a procedure is a sequence of statements. In C for example, procedures are a sequence of imperative statements, such as assignments, tests, loops and invocations of sub procedures. These procedures are functions, which map arguments to return statements.
  • 5. The design method used in procedural programming is called Top Down Design. This is where you start with a problem (procedure) and then systematically break the problem down into sub problems (sub procedures). This is called functional decomposition, which continues until a sub problem is straightforward enough to be solved by the corresponding sub procedure. 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. The problem with PP approach is its handling of data. PP approach gives no importance to data. By ‘data’ we mean the information collected from user, the new results obtained after calculations etc.
  • 6. In C, a data member must be declared GLOBAL inorder to make it accessible by 2 or more functions in the program. 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.
  • 7. Fibonacci series program in c using recursion #include<stdio.h> int Fibonacci(int); main() { int n, i = 0, c; printf("Enter the number of termsn"); scanf("%d",&n); printf("Fibonacci seriesn"); for ( c = 1 ; c <= n ; c++ ) { printf("%dn", Fibonacci(i)); i++; } return 0; } int Fibonacci(int n) { if ( n == 0 ) return 0; else if ( n == 1 ) return 1; else return ( Fibonacci(n-1) +Fibonacci(n-2)); }
  • 9. Advantages of Procedural Programming: Its relative simplicity, and ease of implementation of compilers and interpreters. The ability to re-use the same code at different places in the program without copying it. An easier way to keep track of program flow.  The ability to be strongly modular or structured. Needs only less memory. Disadvantages of Procedural Programming: Data is exposed to whole program, so no security for data. Difficult to relate with real world objects. Difficult to create new data types reduces extensibility. Importance is given to the operation on data rather than the data.