Solved

Give the Output of the Recursive Function Below When Called

Question 14

Multiple Choice

Give the output of the recursive function below when called with an argument of 5. void recursive( int i )
{
Using namespace std;
If ( i < 8 )
{
I++;
Recursive(i) ;
Cout << i << " ";
}
}


A) 6 7 8
B) 5 6 7
C) 8 7 6
D) 7 6 5
E) None of the above.This is an infinite recursion if the function is called with argument 5.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents