Search:

Type: Posts; User: Samaras

Search: Search took 0.08 seconds.

  1. Re: basic recursion problem - code needs to be modified

    I think i found what is the problem.You are likely to get a stackOverFlowError.Why?
    Because of a call of factorial with a negative number.Here is the call

    int fnr=factorial(n-r);//n-r=4-2=-2
    So...
  2. Re: basic recursion problem - code needs to be modified

    Please post the the first errors that appear :)
Results 1 to 2 of 2