1.

What happens if the base condition isn’t defined in recursive programs?(a) Program gets into an infinite loop(b) Program runs once(c) Program runs n number of times where n is the argument given to the function(d) An exception is thrown

Answer» Correct option is (a) Program gets into an infinite loop

The explanation is: The program will run until the system gets out of memory.


Discussion

No Comment Found