Q. What happens if the base condition isn’t defined in recursive programs? (Solved)

1. program gets into an infinite loop

2. program runs once

3. program runs n number of times where n is the argument given to the function

4. an exception is thrown

  • a. program gets into an infinite loop
Subscribe Now

Get All Updates & News