int f(int n)
{
static int r = 0;
if ( n< = 0)
return 1 ;
if (n > 3 )}
{
r = n ;
return f ( n - 2)+ 2;
}
returns f (n-1) +r;
}
The value of f (7) is ______
A
27
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
21
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
23
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
25
No worries! We‘ve got your back. Try BYJU‘S free classes today!