Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Program to compute amount of coins Date: Sun, 06 Sep 2015 17:04:58 -0700 Organization: None to speak of Lines: 19 Message-ID: References: <1436c460-1201-4574-b672-d121a9f306b6@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="22158"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+sVW1/ZvhgkJV+Pn1Cgn46" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:wHDk5DgDURQVi/t7SYedoyefCRA= sha1:hsWOAT+RddsyJsitNt8G01STUFY= Xref: csiph.com comp.lang.c:69699 Tim Rentsch writes: > Keith Thompson writes: >> Bartc writes: >> [...] >>> (Note that ordinary C integers might be limited in range to some 2 >>> billion cents or around $20m.) >> >> C's type int typically (on modern systems) has an upper bound of >> 2**31-1, but it's allowed to be a small as 65535. [snip] > > Of course you meant to say 32767. Yes, of course. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"