Getting wrong answer in FCTRL2

CODE LINK

This code works perfectly in xcode but when i run it in ideone I get output of 100! as -3, -4
Why is that?

i have no knowledge of c++ but when i check your code with it’s c equivalent i found following errors in your code which i am mentioning in the code
hope it will help you

http://ideone.com/uso9IO

1 Like

Thanks a lot man.

//