Example code from Laboratory Session 7 (Recursivity)

Example solution for Problem 2 (Codeblocks project, zipped)– Hermite poly evaluation.

Example solution for Problem 4 (Codeblocks project, zipped)– read n words and print them in reverse order.

Example recursive descent parser adapted from
http://publications.gbdirect.co.uk/c_book/chapter4/recursion_and_argument_passing.html
is packed here

Example recursive power computation is recPower.c. A codeblocks project with two solutions is given in recPower.zip

Solution for Problem 8 (permutations)


Solution to Problem 9 (rod cutting)


An useful link for solving Problem 12. A solution is given in partition.zip

Solution for problem 16 (cubes) is given in cubes.zip.