Underflow in Factorial

Hi all

My execv works for argtest and add, but doesnt work for factorial and I am getting an Underflow error. On debugging i saw that the values reached 1 in the second iteration itself, irrespective of what number we gave as the argument ranging from 1-9. Could anyone please point out where i might be going wrong.

Thanks in advance.

I suspect you’re not passing the arguments properly. I’d play with argtest and try to see what’s wrong.

Thank you. Got resolved :slight_smile: