As we mentioned earlier, functional programming is a programming paradigm. You can think of a paradigm as a way of thinking when constructing programs. C++ is a multi-paradigm language. We can use it to develop programs in a procedural paradigm, that is, by executing statements one after one another. In Chapter 3, Details of Object-Oriented Programming, we discussed the object-oriented approach, which involves decomposing a complex system into intercommunicating objects. Functional programming, on the other hand, encourages us to decompose the system into functions rather than objects. It operates with expressions rather than statements. Basically, you take something as input and pass it to a function that produces an output. This can then be used as input for another function. This might seem simple at first, but functional programming incorporates...
United States
United Kingdom
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Argentina
Austria
Belgium
Bulgaria
Chile
Colombia
Cyprus
Czechia
Denmark
Ecuador
Egypt
Estonia
Finland
Greece
Hungary
Indonesia
Ireland
Italy
Japan
Latvia
Lithuania
Luxembourg
Malaysia
Malta
Mexico
Netherlands
New Zealand
Norway
Philippines
Poland
Portugal
Romania
Singapore
Slovakia
Slovenia
South Africa
South Korea
Sweden
Switzerland
Taiwan
Thailand
Turkey
Ukraine