Programming with C

⌘K
  1. Home
  2. Docs
  3. Programming with C
  4. Basics of C Programming
  5. Introduction to Programmi...
  6. Structured Programming

Structured Programming

Structured Programming

  • Structured Programming is the one in which the program is made as a single structure
  • It means that the code will execute the instruction by instruction one after the other.
  • It doesn’t support the possibility of jumping from one instruction to some other with the help of any statement like GOTO, etc.
  • Therefore, the instructions in this approach will be executed in a serial and structured manner.

Example

The languages that support Structured programming approach are:

  • C
  • C++
  • Java

The structured program mainly consists of three types of elements:

  • Selection Statements
  • Sequence Statements
  • Iteration Statements

The structured program consists of well-structured and separated modules. But the entry and exit in a Structured program is a single-time event. It means that the program uses single-entry and single-exit elements. Therefore, a structured program is well maintained, neat and clean program. This is the reason why the Structured Programming Approach is well accepted in the programming world.

Structure of Structed programming

Advantages

  • Easier to read and understand
  • User Friendly
  • Easier to Maintain
  • Development is easier as it requires less effort and time
  • Easier to Debug
  • Machine-Independent, mostly.

Disadvantages

  • Since it is Machine-Independent, so it takes time to convert into machine code.
  • The program depends upon changeable factors like data-types. Therefore, it needs to be updated with the need on the go.

Views: 2

How can we help?

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments