Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

Confusion in recursion

$
0
0
int main()
{
   int p=get();//get() function is called here itself.(get is user-defined function for input purpose.)
}

BUT when we talk of recursion,

 int abhilash(int a,int b)
    {
        int ret=abhilash(a,b>>1);//But here why abhilash is not called?and my program proceeds to                     "rest of the code".
        /*rest of the code*/
    }

Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>