int solve(int n)
{
if(n==0 or n==1)
return n;
int sum=0;
return sum+n+solve(n-1);
}
and
int solve(ll n)
{
if(n==0 or n==1)
return n;
int sum=0;
sum=sum+n;
return solve(n-1);
}
what is the difference in working of these two function, please tell me how call stack work of these two function work, please help i am totally confuses