Imperative programming Languages

Imperative programming Languages

In computer science, imperative programming is a programming paradigm that describes computation in terms of statements that change a program state. In much the same way that imperative mood in natural languages expresses commands to take action, imperative programs define sequences of commands for the computer to perform.

Procedural programming is imperative programming in which the program is built from one or more procedures (also known as subroutines or functions). The terms are often used as synonyms, but the use of procedures has a dramatic effect on how imperative programs appear and how they are constructed. Heavily-procedural programming, in which state changes are localized to procedures or restricted to explicit arguments and returns from procedures, is known as structured programming.

Block structure

  • Early in the development of high level languages, the introduction of the block enabled the construction of programs in which a group of statements and declarations could be treated as if they were a single statement.

    Features of Imperative Programming Language

  • They are usually {"typed"}. Broadly we can identify two categories of imperative data type:
    ->Basic data types.
    ->Compound data types.

  • Components comprise:
    ->Data declarations.
    ->Expressions which yield values.
    ->Statements which carry out some operation, e.g. assignment statements, conditional statements, program constructs.

  • I/O and error handling mechanisms.

  • A method of grouping all of the above into a complete program - (program composition).

  • a non-imperative style of programming in which programs describe their desired results without explicitly listing commands or steps that must be performed.

List of Imperative programming Languages

imperative language

An imperative language uses a sequence of statements to determine how to reach a certain goal. These statements are said to change the state of the program as each one is executed in turn. Imperative programming languages may be multi-paradigm and appear in other classifications. Here is a list of programming languages that follow the imperative paradigm

  • ALGOL
  • BASIC
  • COBOL
  • FORTRAN
  • JAVA
  • Lua