728x90 AdSpace

Trending

Difference between imperative and declarative programming

Imperative programming is a programming paradigm that describes computation in terms of statements that change a program state
A declarative programming is a higher level programming language which allows you to express what you want without specifying how to get it.
Imperative language make use of data structures such as arrays, records etc. Array elements and record fields are changed by successive destructive assignments.
In declarative languages, where there is no destructive assignment, explicit representations for data structures must be used. The most fundamental data structure used by declarative programming languages is the list.
In most imperative languages sub-programs cannot be passed as actual parameters to other sub-programs, or be passed back as results (there are exceptions).
In declarative languages, relationships may construct new relationships and pass then on to other relationships as arguments. Thus declarative languages allow definitions or expressions to be treated in the same manner as more standard parameter data items.
click here to know more about imperative and declarative programming paradigm.
Difference between imperative and declarative programming Reviewed by Unknown on 09:41 Rating: 5 Imperative programming is a programming paradigm that describes computation in terms of statements that change a program state A decl...

No comments: