Structured programming is a programming paradigm that emphasizes the use of structured control flow constructs to improve the clarity, quality, and maintainability of software. Structured programming was introduced in the late 1960s as a response to the perceived shortcomings of earlier programming styles, such as assembly language and machine language, which were difficult to read, write, and maintain.
Structured programming languages have the following characteristics:
Structured control flow constructs: Structured programming languages use control flow constructs, such as if-then-else statements, loops, and subroutines, to organize program logic into clear and understandable structures. This makes the code easier to read, write, and modify.
Single entry and single exit points: Structured programming languages require that each control structure have a single entry point and a single exit point. This helps to ensure that the program logic is clear and unambiguous.
No use of GOTO statements: Structured programming languages avoid the use of GOTO statements, which can create spaghetti code that is difficult to read and understand. Instead, they rely on structured control flow constructs to organize program logic.
Examples of structured programming languages include C, Pascal, and Ada. These languages provide built-in support for structured programming constructs, making it easy for programmers to write clear and maintainable code. Structured programming has become the dominant paradigm for developing software applications, and it has paved the way for newer paradigms, such as object-oriented programming and functional programming, that build on its principles.
0 comments :
Post a Comment
Note: only a member of this blog may post a comment.