C - Data Types - Discussion

You Are Here :: Home > C > Data Types - Discussion

 



Q.

long factorial (long x)

{
????
return x * factorial(x - 1);
}
With what do you replace the ???? to make the function shown above return the correct answer?

A. if (x == 0) return 0; B. if (x == 0) return 1;
C. if (x >= 2) return 2; D. if (x <= 1) return 1;

Answer: Option D
Explaination:

 


No Explanation








Discussion

Your Comments Goes here...
NameDiscussion