Wilso199 Homework 6 Solutions

You need to do this AFTER the recursive calls. Otherwise your attempts to access r, below, will be dangling, and could crash the program.