473,326 Members | 2,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Should I buy the C reference manual or the standard ?

I believe I have a good working knowledge of C but now
I want to reach a point where I understand all the dirty
little details. For example I understand what a "natural"
macro will expand to but there are all kinds of contrived
examples where I wouldn't be sure. So I want to reach
a point where I won't have these dark areas in my understanding.
So the question is which book is the most appropriate for
achieving such a goal , the C reference manual by Harbison
and Steele or the Standard ?

Speaking of the standard what do you think of the following
edition ?
http://www.amazon.co.uk/gp/product/0...lance&n=266239

Cheers
Spiros Bousbouras

Jul 12 '06 #1
5 1526
<sp****@gmail.comwrote
>I believe I have a good working knowledge of C but now
I want to reach a point where I understand all the dirty
little details. For example I understand what a "natural"
macro will expand to but there are all kinds of contrived
examples where I wouldn't be sure. So I want to reach
a point where I won't have these dark areas in my understanding.
Why? If it isn't obvious what a macro will do, what makes you think that the
programmer who has to read your code, and might not use C very often, will
be able to understnad it?
--
www.personal.leeds.ac.uk/~bgy1mm

Jul 12 '06 #2

Malcolm wrote:
<sp****@gmail.comwrote
I believe I have a good working knowledge of C but now
I want to reach a point where I understand all the dirty
little details. For example I understand what a "natural"
macro will expand to but there are all kinds of contrived
examples where I wouldn't be sure. So I want to reach
a point where I won't have these dark areas in my understanding.
Why? If it isn't obvious what a macro will do, what makes you think that the
programmer who has to read your code, and might not use C very often, will
be able to understnad it?
Nothing at all. Understanding all the dirty little details is a goal in
its own right ; I'm not necessarily planning on basing my programmes on
those details. I just like to understand things completely. But of
course
there's always the possibility that I'll have to understand someone
else's
obfuscated code.

When it comes to macros in particular I don't even have in mind
necessarily
macros which expand to compilable code. See the thread "Is the output
of the
preprocessor deterministic ?" for more details.
http://groups.google.co.uk/group/com...82b1d30c41a2d3

Jul 12 '06 #3
sp****@gmail.com writes:
I believe I have a good working knowledge of C but now
I want to reach a point where I understand all the dirty
little details. For example I understand what a "natural"
macro will expand to but there are all kinds of contrived
examples where I wouldn't be sure. So I want to reach
a point where I won't have these dark areas in my understanding.
So the question is which book is the most appropriate for
achieving such a goal , the C reference manual by Harbison
and Steele or the Standard ?
[...]

I have both myself, and I recommend it if you're serious about
understanding the dark nooks and crannies of the language.

I paid $18 for my PDF copy of the C99 standard, but n1124.pdf (which
includes the C99 standard plus TC1 and TC2) is free, and it's what I
usually use as a reference.
Speaking of the standard what do you think of the following
edition ?
http://www.amazon.co.uk/gp/product/0...lance&n=266239
I haven't seen it, but it looks like a good deal. (It's a bound copy
of the C99 standard and rationale; Amazon wants about 23 UK pounds for
it.) But if you don't mind working with PDF, you might find a soft
copy more convenient; I do, but YMMV.

It could also be useful to have a good copy of the C90 standard.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jul 12 '06 #4

Keith Thompson wrote:
sp****@gmail.com writes:
So the question is which book is the most appropriate for
achieving such a goal , the C reference manual by Harbison
and Steele or the Standard ?
[...]

I have both myself, and I recommend it if you're serious about
understanding the dark nooks and crannies of the language.

I paid $18 for my PDF copy of the C99 standard, but n1124.pdf (which
includes the C99 standard plus TC1 and TC2) is free, and it's what I
usually use as a reference.
I already have n1124.pdf but is it reliable enough ? I remember reading
here that there are important differences between the draft and the
actual standard.

Jul 12 '06 #5
sp****@gmail.com writes:
Keith Thompson wrote:
>sp****@gmail.com writes:
So the question is which book is the most appropriate for
achieving such a goal , the C reference manual by Harbison
and Steele or the Standard ?
[...]

I have both myself, and I recommend it if you're serious about
understanding the dark nooks and crannies of the language.

I paid $18 for my PDF copy of the C99 standard, but n1124.pdf (which
includes the C99 standard plus TC1 and TC2) is free, and it's what I
usually use as a reference.

I already have n1124.pdf but is it reliable enough ? I remember reading
here that there are important differences between the draft and the
actual standard.
n1124 was published *after* the standard (unlike n869, which was a
pre-standard draft). It incorporates the official C99 standard plus
the changes specified by TC1 and TC2. All differences from the
standard are marked with change bars. (Where TC1 or TC2 changed
something, n1124 doesn't have the original C99 wording.)

I still think the C99 standard was well worth the $18 I paid for it,
but I use n1124 more often.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jul 12 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
by: Christopher J. Bottaro | last post by:
This post is just the culmination of my thoughts and discussions with my coworkers on Python. If you are not interested, please skip over it. At my work, we are developing a product from...
55
by: Elijah | last post by:
I have read many of the topics on learning C++ or Java first. It seems like everyone says something different. I would like to know if I should learn C++ or Java. First a little about myself. I...
9
by: Jimmy Rasmussen | last post by:
When trying to compile this program ----------------------------------------- #include <windows.h> #include <winspool.h> main() { LPHANDLE printer;
14
by: E. Robert Tisdale | last post by:
I am a long time subscriber to the comp.lang.c newsgroup. Recently (over the last few years), comp.lang.c subscribers have been citing and quoting ANSI/ISO C standards documents to support their...
3
by: patrick M | last post by:
.... by Harbison and Steele Q. Is this more or less the only book that goes into c99 in a generally readable way ? I'd like to get a book that covers most of the c99/ansi standard -...
10
by: Olaf Wasmuth | last post by:
Good morning, I am using doxygen to create a reference manual for C source code. Do you know of a way to similarly create a texinfo reference manual (which I would like to use in emacs...
8
by: Metaosp | last post by:
Is there any good on-line reference manual for the latest standard c++ library? In the Java world the library documents are so readily available that makes coding a lot easier, I really wish to...
68
by: Jim Langston | last post by:
I remember there was a thread a while back that was talking about using the return value of a function as a reference where I had thought the reference would become invalidated because it was a...
5
by: broli | last post by:
http://www.delorie.com/djgpp/doc/libc-2.02/
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.