Exam4Training

what is the result of executing the code?

A developer writes the code below to calculate the factorial of a given number function sum(number)

{

return number * sum(number-1);

}

sum (3);

what is the result of executing the code?
A . 0
B. 6
C. Error
D. -Infinity

Answer: C

Exit mobile version