Different types of programming technique in C++

No comments

Different types of programming techniques  :-

1. Unstructured Programming :- This programming technique usually , people start learning programming by  writing small and simple programs consisting only of one main program. Here “main program” stands for a sequence of commands or statements, Which modified data,Which is global throughout the hole program.

programming,computer programming,programming techniques of turing machine,programming techniques,advanced programming techniques,object oriented programming,turing machine programming techniques
Fig   -  Unstructured Programming

This programming technique provide tremendous disadvantages ones the programs gets sufficiently large. This has lead to the idea to extract these sequences, name them (Called as procedures), and offering a techniques to call and returned from these procedures.


2. Procedural Programming (POP) :- With procedural programming we are able to combine returning sequences of statements into one single place. A procedure call is used to invoke the procedure. After the sequence is processed, flow the control process right after the position where the call was made.






With introducing parameters as well as procedures of procedures (Sub Procedures), Programs can now be more structure and error free way.

Now a program can be viewed as a sequence of procedures calls. The main program is responsible to pass data to the individual  calls, the data is processed by the procedure and once the program has finished, the resulting data is presented.



3. Modular Programming :- With modular programming procedures of a common functionality are grouped together into separate modules. A program therefore no longer consist of only one single part. It is now divided into several smaller parts. Which interact through procedure calls and which from the whole program.
              Each module can have its own data. This allows each module to manage an internal state, Which is modified by calls to procedures of this module, How ever there is only one state per module and each module exist at most once in the hole program.




No comments :

Post a Comment

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀