v)
int func(int);
main()
{
int a=2;
printf("%d",func(a));
}
int func(int a)
{
if(a>1)
return(func(--a)+10);
else
return(0);
}
Answers
Answered by
0
Answer:
8
Explanation:
int func(int);// function prototyping
main()
{
int a=2;
printf("%d",func(a));// value of a will 2 and function will approach to function definition
}
int func(int a)// a=2
{
if(a>1)//2>1
return(func(--a)+10);//(-2)+10=- -2+10=8
else
return(0);
}
Similar questions