Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: sum of 64 b...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 20 Topic 26197 of 26822
Post > Topic >>

Re: sum of 64 bits using 32 bits cpu

by roberson@[EMAIL PROTECTED] (Walter Roberson) May 13, 2008 at 06:47 PM

In article
<88ed12b1-fdf8-49c8-9347-a133573276bb@[EMAIL PROTECTED]
>,
sarahh  <cohen200@[EMAIL PROTECTED]
> wrote:

>just to be sure about unsigned int
> I know that in base 10 it is
>~65,000
>when I add it 1  ,I return to 0.
>I don't understand it because I write it in c and I get number bigger
>than the limit.
>what I lost?

The maximum unsigned int is only 65535 on systems using 16 bit
integers. if the system you were using had 32 bit integers, then
you would have gotten different results than you expected,
depending exactly how you wrote the constants and exactly which
format you used to print them out.
-- 
  "When we all think alike no one is thinking very much."
                                              -- Walter Lippmann
 




 20 Posts in Topic:
sum of 64 bits using 32 bits cpu
sarahh <cohen200@[EMAI  2008-05-13 10:17:25 
Re: sum of 64 bits using 32 bits cpu
Spiros Bousbouras <spi  2008-05-13 10:40:08 
Re: sum of 64 bits using 32 bits cpu
Hallvard B Furuseth <h  2008-05-13 19:45:22 
Re: sum of 64 bits using 32 bits cpu
sarahh <cohen200@[EMAI  2008-05-13 11:17:36 
Re: sum of 64 bits using 32 bits cpu
sarahh <cohen200@[EMAI  2008-05-13 11:28:04 
Re: sum of 64 bits using 32 bits cpu
roberson@[EMAIL PROTECTED  2008-05-13 18:47:57 
Re: sum of 64 bits using 32 bits cpu
Hallvard B Furuseth <h  2008-05-13 22:27:00 
Re: sum of 64 bits using 32 bits cpu
Spiros Bousbouras <spi  2008-05-13 11:46:39 
Re: sum of 64 bits using 32 bits cpu
Szabolcs Borsanyi <bor  2008-05-14 02:14:55 
Re: sum of 64 bits using 32 bits cpu
sarahh <cohen200@[EMAI  2008-05-14 03:47:02 
Re: sum of 64 bits using 32 bits cpu
Eligiusz Narutowicz<el  2008-05-14 13:07:00 
Re: sum of 64 bits using 32 bits cpu
=?ISO-8859-1?Q?Tom=E1s_=D  2008-05-14 05:22:28 
Re: sum of 64 bits using 32 bits cpu
=?ISO-8859-1?Q?Tom=E1s_=D  2008-05-14 05:29:16 
Re: sum of 64 bits using 32 bits cpu
Hallvard B Furuseth <h  2008-05-14 14:37:58 
Re: sum of 64 bits using 32 bits cpu
"rio" <a@[EM  2008-05-14 18:57:35 
Re: sum of 64 bits using 32 bits cpu
Bart <bc@[EMAIL PROTEC  2008-05-14 05:35:08 
Re: sum of 64 bits using 32 bits cpu
richard@[EMAIL PROTECTED]  2008-05-14 14:56:41 
Re: sum of 64 bits using 32 bits cpu
Eligiusz Narutowicz<el  2008-05-14 14:51:32 
Re: sum of 64 bits using 32 bits cpu
Szabolcs Borsanyi <bor  2008-05-14 06:10:24 
Re: sum of 64 bits using 32 bits cpu
Spiros Bousbouras <spi  2008-05-14 07:52:33 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 9 1:39:26 CDT 2008.