posted 10 years ago
My job is to determine what the output is I know it is 18 but I'm having trouble understanding why I'm mostly having trouble with this part can someone help me understand why?
else if(a[size -1] == 0)
return 2 * mystery(a, size -1);
else return 2 * mystery(a,size -1) + 1;