imperative language

Definition from Wiktionary, the free dictionary
Jump to: navigation, search



imperative language (plural imperative languages)

  1. (computing) Any programming language that consists (mostly) of a series of commands, typically assigning values to objects; a procedural language.

x = 1;
y = 2;
z = x + y;
printf("%d\n", z);

A sequence of statements in the imperative C programming language, where "=" is the assignment operator. Each is executed in order. For example, the values of x and y assigned in lines 1 and 2 are used in line 3.