Re: [Dev-C++] Fibonacci numbers / unsigned long long int
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Alfred P. R. <al...@ya...> - 2005-03-07 06:45:55
|
It appears you may be exceeding the length of a 32 bit int, which is what probably happened with the long long int declaration. Try declaring long long instead of long long int for Fibonacci. Interesting bug! Dion Bouwer <dio...@in...> wrote: <snip> unsigned long long int Fibonacci[numFibs]; <snip> Alfred P. Reaud |