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. 0.
b. 1.
c. 4.
d. 24.


d. 24.

Computer Science & Information Technology

You might also like to view...

The ________ number format uses the regional settings preset in Windows for the thousands divider

Fill in the blank(s) with correct word

Computer Science & Information Technology

To setup Split Windows, Synchronous Scrolling or Arrange open workbooks, go to the Window Group in the ________ tab

Fill in the blank(s) with correct word

Computer Science & Information Technology

DSL stands for:

a. Data-Synchronous Link b. Dynamic Streaming Language c. Double-Sector Logic d. Digital Subscriber Line e. Domain Sampling List

Computer Science & Information Technology

All browsers can decode video and audio.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology