Information Technology Reference
In-Depth Information
This code produces the following output:
1
2
3
Figure 5-12 illustrates the code. Notice that with an input value of 3, there are four
different, independent stack frames for method Count . Each has its own value for input
parameter InVal .
Figure 5-12. Example of recursion
Search WWH ::




Custom Search