473,386 Members | 1,720 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,386 software developers and data experts.

C book recommendations

Hello,
I'm looking for C programming book which describes the finer points
of C programming. Even though I've been doing it for years, I always have a
feeling that it could be done better with more elegant code. Any suggestions
would be greatly appreciated.

Cheers

Peter.
Nov 14 '05 #1
12 1083
Peter Goddard wrote on 14/05/05 :
I'm looking for C programming book which describes the finer points
of C programming. Even though I've been doing it for years, I always have a
feeling that it could be done better with more elegant code. Any suggestions
would be greatly appreciated.


Two monuments:

Beginners
http://cm.bell-labs.com/cm/cs/cbook/

Experts
http://users.powernet.co.uk/eton/unleashed/

If you are a poor student or if you think that books are too expansive
for you (it may happen in some places in the world), here is a good
in-line-book:

http://publications.gbdirect.co.uk/c_book/
In addition, here is a good site for experts:

http://web.torek.net/torek/c/

Enjoy.

--
Emmanuel
The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html
The C-library: http://www.dinkumware.com/refxc.html

I once asked an expert COBOL programmer, how to
declare local variables in COBOL, the reply was:
"what is a local variable?"

Nov 14 '05 #2
Thanks, I'll check them out.
Cheers

Peter.

"Emmanuel Delahaye" <em***@YOURBRAnoos.fr> wrote in message
news:mn***********************@YOURBRAnoos.fr...
Peter Goddard wrote on 14/05/05 :
I'm looking for C programming book which describes the finer
points of C programming. Even though I've been doing it for years, I
always have a feeling that it could be done better with more elegant
code. Any suggestions would be greatly appreciated.


Two monuments:

Beginners
http://cm.bell-labs.com/cm/cs/cbook/

Experts
http://users.powernet.co.uk/eton/unleashed/

If you are a poor student or if you think that books are too expansive for
you (it may happen in some places in the world), here is a good
in-line-book:

http://publications.gbdirect.co.uk/c_book/
In addition, here is a good site for experts:

http://web.torek.net/torek/c/

Enjoy.

--
Emmanuel
The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html
The C-library: http://www.dinkumware.com/refxc.html

I once asked an expert COBOL programmer, how to
declare local variables in COBOL, the reply was:
"what is a local variable?"

Nov 14 '05 #3
Emmanuel Delahaye wrote:
Experts
http://users.powernet.co.uk/eton/unleashed/

If you are a poor student or if you think that books are too expansive
for you (it may happen in some places in the world),


You probably mean "expensive." The book may be too expansive for some,
but that has little to do with the part of the world one lives in.

Nov 14 '05 #4
Martin Ambuhl wrote on 14/05/05 :
Emmanuel Delahaye wrote:
Experts
http://users.powernet.co.uk/eton/unleashed/

If you are a poor student or if you think that books are too expansive for
you (it may happen in some places in the world),


You probably mean "expensive." The book may be too expansive for some, but
that has little to do with the part of the world one lives in.


Ah sh*t! I tried and I failed again. Yes, expensive, of course.

--
Emmanuel
The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html
The C-library: http://www.dinkumware.com/refxc.html

"Clearly your code does not meet the original spec."
"You are sentenced to 30 lashes with a wet noodle."
-- Jerry Coffin in a.l.c.c++

Nov 14 '05 #5
You might try "Expert C programming" by Peter Van Linden. Not only its
a very good book, it also describes things in a funny way. It covers
various subtleties and tips. I also liked the bits about linking, how
the sections are produced and libraries are searched for linking. That
said, I think one needs to go even beyond this book.

If you want to know more about how things work in memory, I could
recommend "Memory as a programming concept in C and C++". You get a
better understanding of how programming constructs are interpreted in
memory.

I would also read the Gcc extensions in GCC documentation. It includes
various useful constructs that I didn't know about and was surprised to
see.

Bahadir

Nov 14 '05 #6
Bi*************@gmail.com wrote on 14/05/05 :
I would also read the Gcc extensions in GCC documentation. It includes
various useful constructs that I didn't know about and was surprised to
see.


gcc extensions are certainely exciting, but by-defition, they don't
belong to the C-standard (gnu-c is not C).

Unless gcc is the one and only compiler in the world, gcc-extensions
are not portable. (Not to mention platform-dependent extensions)

--
Emmanuel
The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html
The C-library: http://www.dinkumware.com/refxc.html

"There are 10 types of people in the world today;
those that understand binary, and those that dont."

Nov 14 '05 #7
Emmanuel Delahaye wrote:
gcc extensions are certainely exciting, but by-defition, they don't
belong to the C-standard (gnu-c is not C).

Unless gcc is the one and only compiler in the world, gcc-extensions
are not portable. (Not to mention platform-dependent extensions)

--
Emmanuel


I certainly agree with all you said. However, I think gcc is the best
source to learn about and experiment things as its free. Not that I'm
fanatical about GNU/Linux but about ease of learning. Also the
extensions help on brainstorming about various language features, judge
their usefulness, etc. So, you can go beyond what the standard imposes
on you, yet not much moving further away from plain old C.

Bahadir

Nov 14 '05 #8
ba************@gmail.com wrote on 14/05/05 :
<gnu-c...> So, you can go beyond what the standard imposes
on you, yet not much moving further away from plain old C.


Sure, but gnu-c is definitely another language that is not (more than,
who knows?) iso-c, and must be treaded for what it is.

--
Emmanuel
The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html
The C-library: http://www.dinkumware.com/refxc.html

"Clearly your code does not meet the original spec."
"You are sentenced to 30 lashes with a wet noodle."
-- Jerry Coffin in a.l.c.c++

Nov 14 '05 #9
Peter Goddard wrote:

I'm looking for C programming book which describes the finer
points of C programming. Even though I've been doing it for years,
I always have a feeling that it could be done better with more
elegant code. Any suggestions would be greatly appreciated.


K & R contains some subleties, besides being an excellent reference
and teaching book. After that I recommend "The Practice of
Programming" by Kernighan and Pike. There are some very good areas
in "C Unleashed", as recommended by others here.

The two best guides are reading others code and evaluating it, and
reworking your own code for clarity and accuracy. Every time you
make a mistake try to evaluate why you erred, and do things to make
that error less likely in the future.

--
Some informative links:
news:news.announce.newusers
http://www.geocities.com/nnqweb/
http://www.catb.org/~esr/faqs/smart-questions.html
http://www.caliburn.nl/topposting.html
http://www.netmeister.org/news/learn2quote.html
Nov 14 '05 #10
"Emmanuel Delahaye" <em***@YOURBRAnoos.fr> wrote in message
news:mn***********************@YOURBRAnoos.fr...
ba************@gmail.com wrote on 14/05/05 :
<gnu-c...> So, you can go beyond what the standard imposes
on you, yet not much moving further away from plain old C.


Sure, but gnu-c is definitely another language that is not (more than, who
knows?) iso-c, and must be treaded for what it is.


Another 'slip' by Emmanuel causes me to write:

"Don't tread on C".

(Typically only Americans or students of
American history will 'get' this one).

:-)
-Mike
Nov 14 '05 #11
Bi*************@gmail.com wrote:
You might try "Expert C programming" by Peter Van Linden. Not only its a very good book, it also describes things in a funny way. It covers
various subtleties and tips. I also liked the bits about linking, how the sections are produced and libraries are searched for linking. That said, I think one needs to go even beyond this book.


This is a very good recommendation IMHO. Another book worth checking
out that I haven't seen mentioned on this list is 'C Interfaces and
Implementations' by David Hanson.
http://www.cs.princeton.edu/software/cii/

'Expert C programming' and 'C Interfaces and Implementations' are the
two books on C I have enjoyed the most.

-Charle

Nov 14 '05 #12

"Mike Wahler" <mk******@mkwahler.net> wrote in message
news:1I***************@newsread3.news.pas.earthlin k.net...
"Emmanuel Delahaye" <em***@YOURBRAnoos.fr> wrote in message
news:mn***********************@YOURBRAnoos.fr...
ba************@gmail.com wrote on 14/05/05 :
<gnu-c...> So, you can go beyond what the standard imposes
on you, yet not much moving further away from plain old C.


Sure, but gnu-c is definitely another language that is not (more than, who knows?) iso-c, and must be treaded for what it is.


Another 'slip' by Emmanuel causes me to write:

"Don't tread on C".

(Typically only Americans or students of
American history will 'get' this one).

:-)
-Mike

/// Hsssssss.
Nov 14 '05 #13

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

Similar topics

8
by: Parts Manager | last post by:
Hello All, I would like a couple of book recommendations to get a jump start on Access and to gain some knowledge on Access. I have a few years in programming Basics, then to PDS 7.0, then...
3
by: Alex R | last post by:
Hey guys, I have been programming on and off in C for many years now, but I seem to forget the format of some function calls/conventions here and there, I might be working on something that is...
4
by: Berehem | last post by:
I would like some recommendations about what C books would suit me best. I have read the other topics about books, but I thought my case was unique enough to warrant book recommendations again....
4
by: Mike | last post by:
Hi, I am planning on purchasing VS2005 to learn C# very soon, and I need good book recommendations. I realize this is a question that may be asked a lot, but please consider my background: I...
1
by: Brett | last post by:
I'd like any recommendations on a good ASP.NET book which discusses these topics: - connecting to SQL Server, MS Access and other databases - communicating with VB.NET and C#.NET - Interacting...
0
by: vbdotnetmania | last post by:
Hi, I am looking for recommendations on a .NET Security book, basically all I really want to do is to be able to sell my application online and protect my code, I have not found enough information...
1
by: Billy Biro | last post by:
Hi. I'm looking for some recommendations for Visual Basic 2005 books. Specifically, I'm NOT looking for books that detail the elements of the language, nor explain OOP, but rather present...
4
by: Neil Landau | last post by:
Hi all, I'd like to ask for book recommendations, please. I'm a VB guy looking to move to C#. I have quite a fair amount of experience of VB.NET (and prior to that, VB4 through VB6), so I'm...
4
by: Gernot Bauer | last post by:
Hi! I plan to develope a web application with PHP, and I am looking for a book that aids me. I already have experience with PHP as well as relational databases, but I never have written a big...
10
by: SusanV | last post by:
Time to learn something new, anyone have any recommendations for a good reference book on ASP.Net? Also recommendations on AJAX would be most welcome. TIA, SusanV
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.