R

Ram Sharma • 193.86K Points
Coach

Q. With what do you replace the ???? to make the function shown below return the correct answer?

Code:
long factorial (long x)
{
????
return x * factorial(x – 1);
}
  • (A) if (x == 0) return 0;
  • (B) return 1;
  • (C) if (x >= 2) return 2;
  • (D) if (x <= 1) return 1;

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics