Limited access

Upgrade to access all content for this subject

Consider the following code segment:

private static int recall(int m)
{
   if (m > 2)
   {
      m--;
      return m + recall(m);
   }
   else
      return m;
}

What value would be returned if m = 10?

A

2

B

10

C

46

D

54

E

56

Select an assignment template