RE: [Dev-C++] Fibonacci numbers / unsigned long long int
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <Mat...@Ve...> - 2005-03-07 15:08:27
|
Not quite! long long is actually an abbreviation for long long int. The compiler is supposed to look at them both as being identical tokens. -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Alfred P. Reaud Sent: Sunday, March 06, 2005 10:46 PM To: Dev-Cpp UserList Subject: Re: [Dev-C++] Fibonacci numbers / unsigned long long int 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 ___________________________________________________________________ The information contained in this message and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it and all copies and backups thereof. Thank you. |