Procedural programming means the steps a program must follow to give the desired output. Procedural programming is also called imperative programming and structured programming. It is based upon the concept of procedural call. A procedure is a method, function, routine or a subroutine which contain some number of steps to accomplish a particular task. A procedural program consist of some steps which executes in linear order to give the desired output. It follows top-down approach. In procedural programming language the program is divided into variables, data structures and sub-routines. Data is given for input with the help of procedure call by passing the values in form of arguments and obtaining the output with the help of return statements. It gives less security of data/information as data is not encapsulated. Examples of procedural programming languages are C, C++, pascal, Fortran, BASIC etc.
No comments:
Post a Comment