25-08-2017, 09:32 PM
Programming Paradigm
C++.ppt (Size: 88 KB / Downloads: 59)
Paradigm means methodology.
A programming paradigm is a fundamental style of computer programming or the programming technique.
Examples: Procedural, object-oriented, functional.
Unstructured Programming
Unstructured programming is a programming paradigm where all code is contained in a single continuous block.
These programming languages have to rely on execution flow statements such as Goto, used in many languages to jump to a specified section of code.
Example: BASIC
Disadvantages for large programs
difficult to follow logic
if something needs to be done more than once must be re-typed
hard to incorporate other code
not easily modified
difficult to test particular portions of the code
Structured Programming
Here, where programming tasks can be split into smaller sections known as functions or subroutines, which can be called whenever they are required.
Structured programming is often (but not always) associated with a “top-down” approach to design.
Examples: Pascal and Ada