- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] C Gurus
- From: Erik de Castro Lopo <erikd-slug@xxxxxxxxxxxxx>
- Date: Wed, 23 Nov 2005 06:44:34 +1100
- Organization: Erik Conspiracy Secret Labs
- Reply-by: Fri Mar 4 18:43:51 EST 2000
O Plameras wrote:
> Hi Hal,
>
> My son's library has the fourth edition with co-authors, Peter Aitken
> and Bradley L. Jones.
> In that edition Eric is not included as co-author yet.
Thats correct (although the spelling of my name os not).
> But the
>
> http://www.amazon.com/gp/product/0672315971/102-2858012-6274528?v=glance&n=283155&s=books&v=glance
>
> says he is.
>
> I had a quick look at the fourth edition and I noticed that the examples says word-size is 2 bytes
> meaning this fourth edition was written with 16-bit PCs as the test platform.
>
> I'm just wondering if the latest edition has examples that were modified for 32-bit PCs.
In the book I co-authored, this issue is dealt with on pages 39 to 42.
In this section I supply an example program called sizeof.c which
prints out the sizes of the various numeric types (including long).
I also show the output of this program on a 32 bit i386 CPU as well
as a 64 bit DEC/Compaq Alpha CPU.
If you come to the SLUG meeting on Friday, I will bring you a copy of
this book so you can see for yourself. If you then publically admit
that you were wrong on this issue you can keep the book [1].
Erik
[1] I don't think this book is perfect. It was published in 1999 and
I have leanrt a lot about C and programming since then.
--
+-----------------------------------------------------------+
Erik de Castro Lopo
+-----------------------------------------------------------+
"I could never learn to use C++, because of the completely
overwhelming desire to redesign the language every time I tried
to use it, but this is the normal, healthy reaction to C++."
-- Erik Naggum