• Home
  • About
    • Mittin PS Nayyar photo

      Mittin PS Nayyar

      Generative AI is the new Era to delve, Data is the new science

    • Learn More
    • Email
    • Twitter
    • Facebook
    • LinkedIn
    • Instagram
    • Github
  • Posts
    • All Posts
    • All Tags
  • Projects

Imperative Programming

03 Jun 2019

Reading time ~1 minute

Imperative Programming


Imperative programming is a paradigm of computer programming in which the program describes a sequence of steps that change the state of the computer. Unlike declarative programming, which describes “what” a program should accomplish, imperative programming explicitly tells the computer “how” to accomplish it. Programs written this way often compile to binary executables that run more efficiently since all CPU instructions are themselves imperative statements.

To make programs simpler for a human to read and write, imperative statements can be grouped into sections known as code blocks. In the 1950s, the idea of grouping a program’s code into blocks was first implemented in the ALGOL programming language. They were originally called “compound statements,” but today these blocks of code are known as procedures. Once a procedure is defined, it can be used as a single imperative statement, abstracting the control flow of a program and allowing the developer to express programming ideas more naturally. This type of imperative programming is called procedural programming, and it is a step towards higher-level abstractions such as declarative programming.

Imperative programming languages

  • Ada
  • ALGOL
  • Assembly language
  • BASIC
  • C
  • C#
  • C++
  • COBOL
  • D
  • FORTRAN
  • Go
  • Groovy
  • Java
  • Julia
  • Lua
  • MATLAB
  • Modula
  • MUMPS
  • Nim
  • Oberon
  • OCaml
  • Pascal
  • Perl
  • PHP
  • PROSE
  • Python
  • Ruby
  • Rust

Thanks !!!

Furthermore, if you have any query, feel free to ask in the comment section.



ParadigmProgramming Share Tweet +1