473,671 Members | 2,578 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"a book on c" Kelly & Pohl (4e)

is this book good for learning C ?

i am a beginning programmer, Kernighan and Ritchie 2e is quite hard on
me.

Mar 21 '07 #1
35 5825
Oops, That's the book I want to introduce to u:)

On Mar 21, 12:45 pm, "pandit" <jala...@gmail. comwrote:
is this book good for learning C ?

i am a beginning programmer, Kernighan and Ritchie 2e is quite hard on
me.

Mar 21 '07 #2
On Mar 21, 9:45 am, "pandit" <jala...@gmail. comwrote:
is this book good for learning C ?

i am a beginning programmer, Kernighan and Ritchie 2e is quite hard on
me.
I have both books. I don't see "A Book On C" as being any easier than
K&R2. Same for H&S. All good books.

Probably, for a pure beginner (with no computer language experience at
all) K. N. King's book is a better bet.
http://knking.com/books/c/

Mar 22 '07 #3
pandit wrote:
is this book good for learning C ?

i am a beginning programmer, Kernighan and Ritchie 2e is quite hard on
me.
Hi,

I don't know what others will think of it but I liked the oreilly
practical c book.

It has lots of programming exercises as you go and I am pretty sure it
is ansi 89 compliant. At some point it does use os specific stuff but
it is when it is talking about #ifdef for conditional compiling
depending on whether your using unix or windows.

I would be interested to see what others think of it.

Kind Regards,
Anthony Irwin
Mar 22 '07 #4
Anthony Irwin said:
I don't know what others will think of it but I liked the oreilly
practical c book.
<snip>
>
I would be interested to see what others think of it.
<coughNo.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Mar 22 '07 #5
Richard Heathfield wrote:
Anthony Irwin said:

>>I don't know what others will think of it but I liked the oreilly
practical c book.

<snip>
>>I would be interested to see what others think of it.


<coughNo.
Whats bad about it?

I am now going through k&r2 as every man and his dog says its the best
but practical c got me going does it teach any bad habits or wrong things?

Kind Regards,
Anthony Irwin
Mar 22 '07 #6
Anthony Irwin said:

<snip>
>
Whats bad about ["Practical C Programming", by Steve Oualline]?
It used to be on my "Recommende d" list. Then I read it (I don't have a
copy, but one was lying around at work). Oh deary deary me. But that
was about five years ago. I don't now recall what it was that horrified
me so much, so perhaps someone who actually has a copy will oblige by
tearing it into the customary shreds.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Mar 22 '07 #7
pandit wrote:
is this book good for learning C ?

i am a beginning programmer, Kernighan and Ritchie 2e is quite hard on
me.
Yes, I think it's good. It's the book I recommend most often, even over
K&R2.

I learned C in 1990, when the 2nd editions of both Kelley and Pohl and
K&R were released. My memory of that time is that I found K&R2 opaque
and confusing. It seems very clear to me when I read it *now*, but I
trust my memory of what it seemed like before I knew the language.

Kelley and Pohl covers very similar territory, and I think either book
can serve as an excellent reference, but Kelley and Pohl does a better
job of *teaching*.

Compare these two descriptions of the #include <stdio.hline in the
very first program example from each book.

K&R2 (p 6):

The first line of the program,

#include <stdio.h>

tells the compiler to include information about the standard input/
output library; this line appears at the beginning of many C source
files. The standard library is described in Chapter 7 and Appendix
B.

Kelley and Pohl (2nd ed, p 5):

#include <stdio.h>

A preprocessor is built into the C compiler. When the command to
compile a program is given, the code is first preprocessed, and then
compiled. Lines that begin with a # communicate with the preproces-
sor. This #include line causes the preprocessor to include a copy of
the header file stdio.h at this point in the code. This header file
is provided by the C system. The angle brackets around <stdio.h>
indicate that this file is to be found in the "usual place," which is
system dependent. We have included this file because it contains
information about the printf() function.

It takes only until p. 10 in Kelley and Pohl to find a more detailed
explanation of #include and .h files. This discussion doesn't occur in
K&R2 until p. 88.

K&R2 is intentionally vague about topics that the authors wish to defer
to later discussion. This makes many aspects of the language seem
deeply mysterious in the early stages of learning it. When the later
discussion is finally encountered--if you last that long--it is often
encumbered by technicalities that further confuse the beginner.

- Ernie http://home.comcast.net/~erniew
Mar 22 '07 #8
An********@gmai l.com wrote:
Oops, That's the book I want to introduce to u:)
Please don't top-post. Your replies belong following or interspersed
with properly trimmed quotes. See the majority of other posts in the
newsgroup, or:
<http://www.caliburn.nl/topposting.html >
Mar 22 '07 #9
Thanks for top-posting. I find it much more convenient than the
officially sanctioned alternative.

On Wed, 21 Mar 2007 10:24:13 -0700, AndersWang wrote:
Oops, That's the book I want to introduce to u:)

On Mar 21, 12:45 pm, "pandit" <jala...@gmail. comwrote:
>is this book good for learning C ?

i am a beginning programmer, Kernighan and Ritchie 2e is quite hard on
me.
Mar 22 '07 #10

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

Similar topics

4
1456
by: C++ Shark | last post by:
Hi!, sorry for this cross post, but i am not sure which group is most relevant to my question. I am looking for a good book on programming in C/C++ for the intel processors. If you know of any such material, please post a reply. thanks, Craig
12
2112
by: Guido Mureddu | last post by:
Hello, I'm a student in electronic engineering. I do know you've seen and answered this sort of topic/request countless times, but I haven't found past threads as helpful as I had hoped, and even though I have read them all and many reviews, I prefer to ask directly to people who know the subject better than anyone else. First of all, I'm not new to programming, and I have already had an introductory course on C. I have an...
72
4190
by: Paminu | last post by:
In math this expression: (a < b) && (b < c) would be described as: a < b < c But why is it that in C these two expressions evaluate to something different for the same values of a, b and c?
6
9265
by: kellygreer1 | last post by:
What is a good one line method for doing a "length safe" String.Substring? The VB classes offer up the old Left function so that string s = Microsoft.VisualBasic.Left("kelly",200) // s will = "kelly" with no error // but string s2 = "kelly".Substring(0,200) // results in // ArgumentOutOfRangeException
94
30278
by: Samuel R. Neff | last post by:
When is it appropriate to use "volatile" keyword? The docs simply state: " The volatile modifier is usually used for a field that is accessed by multiple threads without using the lock Statement (C# Reference) statement to serialize access. " But when is it better to use "volatile" instead of "lock" ?
2
3473
by: Mukesh_Singh_Nick | last post by:
What is meant by the "most significant digits" in the following statement? <BLOCKQUOTE> With %g and %G, the precision modifier determines the maximum number of significant digits displayed.</BLOCKQUOTE> The statement appears here: http://www.cppreference.com/stdio/printf.html Also, what do we mean by the magnitude of a floating point number?
0
1493
by: shineyang | last post by:
Dear all: Who is kind to help me about the following problem. Why cannot log the remote node by using Net::Telent #################################### The following is normal to the process using "Telnet" #################################### $ telnet 172.30.9.2 Trying 172.30.9.2...
0
8481
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8823
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8672
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7441
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2817
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2058
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.