In the absence of a exit condition in a recursive function, the following error is given __________

KellyPoima

New member
In the absence of a exit condition in a recursive function, the following error is given __________
A. Compile time error
B. Run time error
C. Logical error
D. No error
 
Answer: b
Explanation: When a recursive function is called in the absence of an exit condition, it results in an infinite loop due to which the stack keeps getting filled(stack overflow). This results in a run time error.
 

Tìm kiếm

Back
Top