Question: Question 2. why the answer is infinite for input secret(12) Question2 0/ 1 point What will this return if we call secret(12)? int secret (int

Question 2. why the answer is infinite for input secret(12) Question2 0/Question 2. why the answer is infinite for input secret(12)

Question2 0/ 1 point What will this return if we call secret(12)? int secret (int n) t if (n == 2) return n; else return n (secret (n 2)) Math error 3 0.5 Stack overflow error (Infinite recursion) 6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!