imperative programming

noun
UK /ɪmˈper.ə.tɪv ˈprəʊ.ɡræm.ɪŋ/
US /ɪmˈper.ə.tɪv ˈproʊ.ɡræm.ɪŋ/

A way of writing computer programs where you tell the computer exactly what steps to do, one by one.

In imperative programming, you write a loop that adds each number to a total.


OTHER MEANINGS

2. A programming style that uses commands that change the program's state.

Assigning a new value to a variable is a basic action in imperative programming.

3. Writing code as a list of instructions the computer follows in order.

The teacher explained that imperative programming is like giving a recipe to a cook.

4. A way to build software by describing how to do something rather than what the result should be.

Many older languages, like C, are known for imperative programming.