+ 1

What do we mean by recursion

in simple terms recursion ,factorials functions

22nd Jun 2018, 6:16 PM
Kanana Kanana
Kanana Kanana - avatar
4 Respuestas
+ 2
Alexander Sokolov so it is used only by the decision loops only?
22nd Jun 2018, 6:30 PM
Kanana Kanana
Kanana Kanana - avatar
+ 1
Hello, Kanana Kanana ! Its use of recursion in programming has found a solution to a number of complex problems. If you only need to make one call, then it's easier to use an integration cycle, but with two or more repetitions, to avoid building a chain and make them execute as a tree, and recursive situations are applied. For a wide class of problems, the organization of the computational process in this way is the most optimal from the point of view of resource consumption. Thus, a recursion in Pascal or any other high-level programming language is a function or procedure call before the conditions are fulfilled, regardless of the number of external calls. In other words, there can be only one access to the subroutine in the program, but it will occur until a certain moment in advance. In a way, this is an analog of the cycle with its own specific use https://www.sololearn.com/learn/CPlusPlus/1641/?ref=app
22nd Jun 2018, 6:28 PM
Alexander Sokolov
Alexander Sokolov - avatar