A procedural language is a type of programming language that follows a step-by-step approach to executing instructions.
It is based on
procedures, routines, or functions, which are blocks of code that perform specific tasks. Procedural languages focus on how a program should
be executed by specifying sequences of operations, usually following a structured format like loops, conditionals, and function calls.
Key Features:
Sequential Execution: Instructions are executed in order.
Functions/Procedures: Code is divided into reusable blocks.
Local and Global Variables: Supports different scopes for variables.
Control Structures: Uses loops (for, while), conditionals (if-else), and switches.
Modularity: Encourages breaking down a program into smaller, manageable parts.
Examples of Procedural Languages:
C
Pascal
Fortran
BASIC
COBOL
Procedural languages are often contrasted with object-oriented programming (OOP) languages, which focus more on objects and their
interactions rather than a strict sequence of instructions.