It's output is 30 but,how is it giving an output when there is no return value when it calls f(0)?
#include<stdio.h>
main()
{
int n=10;
int f(int n);
printf("%d",f(n));
}
int f(int n)
{
if(n>0)
{
return(n+f(n-2));
}
}