I need to find out the output of the following code snippet return by function go(2) ...
int a=10;
int go(int b)
{
if(b<=4)
return b;
else
return go(b+1)*go(b-2)-(b*2);
++a;
cout<<a;
return -1;
}
When I do the dryrun myself on paper , it should first return the value of b from the line no. 5 and the display value of a in line no. 10 but when I execute the code in compiler it shows none with the returning value 0(obviously which i write in main())...can u please tell me why?