LECTURE 8: 06/29/2006 PART I: RECURSION ================== (1) Why, and how. (2) Vs. Iteration. http://www.phim.unibe.ch/comp_doc/c_manual/C/TECHNIC/itter_rec.html (2) Activation records and what happens during a recursion. PART II: FUNCTIONS: =================== (1) Passing by values. Can get tricky when handling bulky data structures. (2) Passing by reference. Two types. Which one is preferred? There are two ways: one is a pseudo pass by reference (C) and the other is explicit pass by reference. http://www.cs.wisc.edu/~hasti/cs368/CppTutorial/NOTES/PARAMS.html and http://www.brpreiss.com/books/opus4/html/page594.html#SECTION0018221000000000000000 Summary: http://www-cs-students.stanford.edu/~sjac/c-to-cpp-info/references