What value does function mystery return when called with a value of 4?

int mystery (int number)
{
if (number <= 1) {
return 1;
}
else {
return number * mystery(number – 1);
}
}
a) 1
b) 24
c) 0
(d) 4

b) 24

Computer Science & Information Technology

You might also like to view...

A cell ________ is a collection of format settings such as font and fill colors, borders, and alignment that is based on the currently selected theme to provide a consistent appearance within a worksheet

A) layout B) style C) form D) template

Computer Science & Information Technology

In 1996 a hacker allegedly associated with the white supremacist movement temporarily disabled a ___________ ISP

a. Massachusetts b. New York c. Sri Lankan d. None of the above

Computer Science & Information Technology