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 <pawanjalsa.t...@gmail.com> 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 algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to