Skip to content
imperative programming

File:Computer-memory-map.png · Wikimedia Commons · See Wikimedia Commons

EntityQ275596· pop 51· linked from 598 articles

imperative programming

Sign in to save

Also known as IP

programming paradigm of directly specifying commands that affect program state

Wikidata facts

Image
Add all numbers block.png
Show 1 more fact
short name
Imperativ
Sources (1)

via Wikidata · CC0

~22 min read

Article

In computer science, imperative programming is a programming paradigm of software that uses statements that change a process’s state. In much the same way that the imperative mood in natural languages expresses commands, an imperative program consists of commands for the computer to perform. Imperative programming focuses on describing how a program operates step by step (with general order of the steps being determined in source code by the placement of statements one below the other), rather than on high-level descriptions of its expected results.

The term is often used in contrast to declarative programming, which focuses on what the program should accomplish without specifying all the details of how the program should achieve the result.

Connections

Categories