Why is the C programming language called a procedure oriented programming language(POP)?||tsathi||
C Programming tsathi
Procedure Oriented Programming (POP):
Procedure Oriented Programming consists of a set of instructions to be followed and divide these instructions into smaller parts known as functions in order for the computer to perform. C, VB, FORTRAN, Pascal are a few examples of POP.
C Programming is called POP because it divides a large problem(i.e program) in to smaller modules,called function(or procedures).
Features of POP :
- Mainly focused on writing the algorithms.
- The most function uses Global data for sharing which are accessed freely from function to function in the system.
- POP follows the top-down approach in program design.
- It does not have data hiding options.
- Functions transform data from one form to another.
- Data can be moved openly from one function to another around the system.
- Sub-division of the large program into smaller programs called functions.
- Overloading process is not applicable in POP.
Procedure Oriented Programming Features in C:
- C language uses the set of instruction to inform/guide computer what to do step by step.
- Its depend on the procedures, more specifically routines or subroutines.
- As it follows the procedures, hence it adopts the top-down approach.
- Apart from other languages like C++, C language are very much focused on the procedure that relates to the data.
- C language is much focused on the data hence on functions.
- It is also well known as the structured programming language.
The question is heavily inspired from this Quora thread. or on the book and my knowledge.
Comments
Post a Comment