Order of Execution
In a recursive function, the position in which additional statements (i.e., statements other than the recursive call itself) are placed is important. In the simple case of a function calling itself only once, a statement placed before the recursive call will be executed first in the outermost stack frame, while a statement placed after the recursive call will be executed first in the innermost stack frame. Consider this example:
Read more about this topic: Recursive Call
Famous quotes containing the words order of, order and/or execution:
“This is one of the worst speeches Ive ever seen. No one will listen except the Mobil P.R. man. List what we want to say M arrange items in order of priority M then say them plainly and bluntly.... Hit hard and early. Dont apologize or evade tough issues.”
—Jimmy Carter (James Earl Carter, Jr.)
“Almost everywhere we find . . . the use of various coercive measures, to rid ourselves as quickly as possible of the child within usi.e., the weak, helpless, dependent creaturein order to become an independent competent adult deserving of respect. When we reencounter this creature in our children, we persecute it with the same measures once used in ourselves.”
—Alice Miller (20th century)
“I will soon be going out to shape all the singing tomorrows.”
—Gabriel Péri, French Communist leader. Letter, July 1942, written shortly before his execution by the Germans. Quoted in New York Times (April 11, 1943)