imperative language
Jump to navigation
Jump to search
English
[edit]Noun
[edit]imperative language (plural imperative languages)
- (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.