Underflow in Factorial


(Prashanth Anuradha Balu) #1

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.


(Geoffrey Challen) #2

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


(Prashanth Anuradha Balu) #3

Thank you. Got resolved :slight_smile: