why the following code is returning the output even if I am not returning the output of variable a to the previous function.
int fact(int n)
{
int a;
if (n <= 1)
return 1;
else
a = n*fact(n-1);
}
int main()
{
int c=fact(5);
printf("%d",c);
}