1.

Which is the most appropriate definition for recursion?(a) A function that calls itself(b) A function execution instance that calls another execution instance of the same function(c) A class method that calls another class method(d) An in-built method that is automatically called

Answer» Right answer is (b) A function execution instance that calls another execution instance of the same function

The explanation is: The appropriate definition for a recursive function is a function execution instance that calls another execution instance of the same function either directly or indirectly.


Discussion

No Comment Found