![]() Once a procedure is defined, it can be used as a single imperative statement, abstracting the control flow of a program. They were originally called "compound statements," but today these blocks of code are known as procedures. ![]() In the 1950s, the idea of grouping a program's code into blocks was first implemented in the ALGOL programming language. To make programs simpler for a human to read and write, imperative statements can be grouped into sections known as code blocks. Programs written this way often compile to binary executables that run more efficiently since all CPU instructions are themselves imperative statements. Unlike declarative programming, which describes "what" a program should accomplish, imperative programming explicitly tells the computer "how" to accomplish it. Imperative programming is a paradigm of computer programming where the program describes steps that change the state of the computer.
0 Comments
Leave a Reply. |