![](https://gateoverflow.in/?qa=blob&qa_blobid=8623767689219604927)
in this question for foo it will be called with same value again and again which will result in stack overflow
similar will be happening with bar also as it will be called with value 2 , I am unable to understand why ans is given C ,please explain in some details @Rishab Gupta_2 sir