Microsoft Store
 

Imperative programming


 

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

Related Topics:
Computer science - Declarative programming - Programming paradigm - State - Imperative mood - Natural language - Computer

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

Imperative programming languages stand in contrast to other types of languages, such as functional and logical programming languages. Functional programming languages, such as Haskell, are not a sequence of statements and have no global state like imperative languages do. Logical programming languages, like Prolog, are often thought of as defining "what" is to be computed, rather than "how" the computation is to take place, as an imperative programming language does.

Related Topics:
Functional - Logical programming - Haskell - Prolog

~ ~ ~ ~ ~ ~ ~ ~ ~ ~