What is Structure Programming?

Kailash Chandra Behera | Wednesday, December 09, 2020

Introduction

This article provides the introduction of structure programming, the benefits of it, and the structure of the different control associated with c language to support structure programming.

Getting Started

Structured programming is most frequently used with deviations that allow for clearer programs in some particular cases, such as when exception handling has to be performed

Conventional programming using high-level languages such as COBOL, PASCAL, and C is commonly known as structure programming or (POP) procedure-oriented programming.

Procedure oriented programming consists of writing a list of instructions for the computer to follow, and organize this instruction into a group known as a function.

It is possible to do structured programming in any programming language, though it is preferable to use something like a procedural programming language.

In an effort to make unstructured programming more difficult. Structured programming (sometimes known as modular programming[citation needed]) enforces a logical structure on the program being written to make it more efficient and easier to understand and modify.

The benefit of structured programming.

  1. Data are moving around the program freely from function to function. So structure variables can access members directly using dot (.0) or ->(arrow) operator.

  2. Functions transform data from one form to another.

  3. Easy to use control structures that are supporting to structure programming.

The different type of control structures associated with C.

  1. The if statement.

  2. The if-else-if ladder statement.

  3. The switch case() statement.

  4. Loop control statements that are

    1. For loop

    2. While loop

    3. Do-while loop

Summary

In the above of this article, we learned what is structure programming, the benefits, and the different type of controls associated with the C language to support it.

Thanks