If you do not have a base case (i.e., a condition such that the function no longer calls itself, directly or indirectly) that allows the recursion to terminate, yes.Originally Posted by Jefff
Yes. That does not assign the function to a variable. That assigns the return value of the function call to a variable.Originally Posted by Jefff
If you religiously believe that the global main function should be so special, then define a function named say, program, call it from the global main function, and put that if statement in the program function. Frankly, I would be more concerned with creating functions that do one thing and do it well instead of creating functions that must only call other functions.Originally Posted by Jefff



LinkBack URL
About LinkBacks



