First page Back Continue Last page Overview Graphics
Most of the program building blocks needed consist of a few basic structures.
Common program structures allow direct implementation of algorithms encoded in flow charts, pseudo-code, or high-level language statements.
Examples include C language blocks:
Good looping and branching techniques help provide a proper structure to a program by allowing loops to be represented as a single block with one entry and one exit point.
The assembly code equivalents for several C language structures will be presented in the following slides. while, do-while, and for are looping structures, and if-else is a branching structure. These constructs provide an implementation framework.