Imperative Programming

Imperative programming describes a program that gives a computer specific instructions for performing actions. Imperative programming differs from declarative programming, which focuses on the logic of what the program does. Declarative programming typically reacts according to the progress of the program, whatever that may be, whereas imperative programming details very specific steps that the program must take.

Features of imperative programming

Assignment statements: these statements assign values to certain variables within the program. A common method of indicating an assignment is the equation x=value, in which a particular value is assigned to the initial variable. Most programming languages allow a variable to assign a different value if needed for example, if x=5 at one point in the program but is later replaced with the value 3.

Branching statements: one of the most common branching statements is IF, which tells the program to do something different based on a command or condition given.

Looping statements: these statements are functions within the program that are set to repeat, either continuously or for a programmed amount of time. Looping statements must have an initialization, a test, and an update before completing the first iteration of the loop.

Jenna Phipps
Jenna Phipps
Jenna Phipps is a writer for, Enterprise Storage Forum, and CIO Insight. She covers data storage systems and data management, information technology security, and enterprise software solutions.
Get the Free Newsletter
Subscribe to Daily Tech Insider for top news, trends & analysis
This email address is invalid.
Get the Free Newsletter
Subscribe to Daily Tech Insider for top news, trends & analysis
This email address is invalid.

Related Articles

Virtual Private Network (VPN)

A virtual private network (VPN) encrypts a device's Internet access through a secure server. It is most frequently used for remote employees accessing a...

Gantt Chart

A Gantt chart is a type of bar chart that illustrates a project schedule and shows the dependency between tasks and the current schedule...

Input Sanitization

Input sanitization is a cybersecurity measure of checking, cleaning, and filtering data inputs from users, APIs, and web services of any unwanted characters and...

IT Asset Management Software

IT asset management software (ITAM software) is an application for organizing, recording, and tracking all of an organization s hardware and software assets throughout...


ScalaHosting is a leading managed hosting provider that offers secure, scalable, and affordable...


Human resources information system (HRIS) solutions help businesses manage multiple facets of their...

Best Managed Service Providers...

In today's business world, managed services are more critical than ever. They can...