PREDICT OUTPUT OF FOLLOWING PROGRAM
#include <stdio.h>
int f(int n)
{
if (n == 6)
return n;
else return 4*f(n+1);
}
ho
int main()
{
printf("%d ", f(4));
return 0;
}
Answers
Answered by
1
Explanation:
india has one of the smallest number of casses of disease such as diarrhoea, dysentery, clolera
a. True
b. false india has one of the smallest number of casses of disease such as diarrhoea, dysentery, clolera
a. True
b. false
Answered by
1
Answer:
recursion
#include <stdio.h>
int f(int n)
{
if (n == 6)
return n;
else return 4*f(n+1);
}
ho
int main()
{
printf("%d ", f(4));
return 0;
}
Similar questions