Why is C called a structured programming language?

 Structured Programming in C Language

Why is C called a structured programming language?

 

Structured language mean dividing a program in to blocks or parts and executing where one block differs form other so that the reader can understand the program easy.

 

C is called a structured programming language because to solve a large problem C programming language divides the problem into smaller structural blocks. Each of the blocks has different responsibility.These structural blocks are -

 

1. Decision making blocks like - If-else,else-if,switch-Case.

2. Repetitive blocks like - For loop,while-loop,Do-While loop etc.

3. Subroutines/Procedures - functions.

 

The program which solves the entire problem is c collection of such structural block like a function can have smaller inner structural blocks like decisions and loops.

 

For this reasons C is Considered Structured Modular Programming.

 

Structured programming languages are simple and easy to understand because programmers do no require to know complex design concepts to start a new program.

 

 you also may like - why C language is called mid level language 

 

Advantage

 

  •  C structured programming is simple and easy to understand and implement .

 

  •  It is well sited for small size implementation.However this is not restricted.A good design can extend it to large size implementation.

 

  •  Programmers do not require to know complex design concepts to start a new program


Disadvantage

 

  •  Data and methods are not be bind together in a module.

 

  • Polymorphism and inheritance are not available.

 

  • Complex design and full object oriented design cannot be implemented.

 

  •  Programmers generally prefer object oriented programming language over structured programming language when implementing a complex gaming applications or front end,business applications.

 

 


Post a Comment

0 Comments