but o/p is -15 -13 -11 -9 On Sun, Sep 4, 2011 at 3:38 AM, vikas <[email protected]> wrote:
> f(19222) > | > | > f(1922) -11 -2 =-13 > | > | > f(192) = -9 -2 = -11 > | > | > f(19) = f(1) - 9 = -9 > | > | > f(1) = 0 > > output -9 -11 -13 > > > On Sep 3, 10:29 pm, teja bala <[email protected]> wrote: > > Find the output of the following code - plzzz xplain the o/p > > int find(int j) > > { > > if(j>1) > > { > > j=find(j/10)-(j%10); > > printf("%d",j);} > > > > else > > { > > j=0;} > > return j; > > } > > > > int main() > > { > > int i=19222; > > int k; > > k=find(i); > > > > > > > > > > > > > > > > } > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
