Question

    If a recursive function calling itself and that recursive call is the last statement in the function then it’s known as ___________

    A Tail Recursion Correct Answer Incorrect Answer
    B recursion Correct Answer Incorrect Answer
    C Heas Recursion Correct Answer Incorrect Answer
    D All of these Correct Answer Incorrect Answer

    Solution

    If a recursive function calling itself and that recursive call is the last statement in the function then it’s known as  Tail Recursion.  After that call the recursive function performs nothing. The function has to process or perform any operation at the time of calling and it does nothing at returning time.

    Practice Next

    Relevant for Exams: