473,657 Members | 2,504 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

process of learning C language

Hi All,

I have some questions about the process of learning C language.

I see in this groups all expert most of the time quote from C
standard.

1) My question is do all of you study the C standard as the part of
your learning C language?
2) Is it very much required to study line by line of the C standard to
gain expertise?

I am trying to learn C language by studying K&R book thoroughly,
daily reading this news group and I write code in C as part of daily
work but I don't need to use most of the features of C for example bit
wise operator. But I am passionate about gaining expertise in C
language.
So could you please tell me if I am in correct direction or I need to
put extra effort?

Regards,
Somenath

Sep 25 '07 #1
4 1938
On Sep 24, 9:39 pm, somenath <somenath...@gm ail.comwrote:
Hi All,

I have some questions about the process of learning C language.

I see in this groups all expert most of the time quote from C
standard.

1) My question is do all of you study the C standard as the part of
your learning C language?
Only if you want the right answers.
2) Is it very much required to study line by line of the C standard to
gain expertise?
No. But you will have to study the part that you do not understand
clearly if you want to know what the C language is supposed to do.

Very few people will just pick up the C standard and read it. But if
you use it for answering questions eventually you will understand the
whole thing.
>
I am trying to learn C language by studying K&R book thoroughly,
daily reading this news group and I write code in C as part of daily
work but I don't need to use most of the features of C for example bit
wise operator. But I am passionate about gaining expertise in C
language.
So could you please tell me if I am in correct direction or I need to
put extra effort?
I think you have chosen a good course of action.

I suggest the following:
1. Read the C FAQ. You won't understand most of it, but it will help
to get an idea of what is a good idea and what is a bad idea. You
should also refer back to the C FAQ from time to time. What you hope
to gain most from reading it is to remember where certain types of
questions are posed so when you see those questions you will remember
where to look.
2. Read the book K&R2 as you have planned. As you come to each
exercise, work it out carefully. Set your compiler to the maximum
warning level. At first, it will seem a big pain in the rear, but
after you get used to it you will be glad of all the warnings it gives
because it will save you a lot of time.

Sep 25 '07 #2
somenath wrote:
Hi All,

I have some questions about the process of learning C language.

I see in this groups all expert most of the time quote from C
standard.

1) My question is do all of you study the C standard as the part of
your learning C language?
The Standard is not a teaching tool; I cannot imagine anyone
trying to learn C by reading the Standard. Trying to do so would
be like trying to learn carpentry by studying building ordinances.
2) Is it very much required to study line by line of the C standard to
gain expertise?
The carpenter mentioned above will do a lot of sawing and
hammering without ever consulting the ordinances; his skills and
experience serve him well. But on rare occasions he'll need to
refer to the authorities: He's working on a building that will
house a contagious disease laboratory and there are special
requirements for making the windows germ-tight, or he's making
bookshelves for an oxygen-rich environment where certain kinds
of glue must not be used. When he's doing something out of the
ordinary -- or outside his own ordinary experience -- he needs
to check the regulations to be sure he does it right.

In c.l.c. the regulations are read more frequently than in
the ordinary practice of programming in C. This is because the
sample is biased: Questions that appear here are fairly likely
to concern the murky and seldom-visited corners of the language.
Sometimes implementations (or programmers) disagree about what
the proper behavior is in this or that situation; it's then time
to refer to the Law.
I am trying to learn C language by studying K&R book thoroughly,
daily reading this news group and I write code in C as part of daily
work but I don't need to use most of the features of C for example bit
wise operator. But I am passionate about gaining expertise in C
language.
So could you please tell me if I am in correct direction or I need to
put extra effort?
Keep reading good books, keep reading good (and bad) code,
keep writing code: that's how you'll learn. Your knowledge of
C is likely to remain incomplete, but that's all right as long
as you're aware of where your ignorance lies and don't wander
into those areas inadvertently. (Personal example: I have never
used C's complex arithmetic, nor wide characters, nor snprintf(),
so I'm not familiar with them. But I know they exist, and I know
where to learn about them should the need ever arise -- that's
enough to get me by, and I imagine it'll work as well for you.)

--
Eric Sosman
es*****@ieee-dot-org.invalid
Sep 25 '07 #3
somenath wrote:
>
.... snip ...
>
I am trying to learn C language by studying K&R book thoroughly,
daily reading this news group and I write code in C as part of
daily work but I don't need to use most of the features of C for
example bit wise operator. But I am passionate about gaining
expertise in C language.
You will do fine with K&R, provided it is K&R2. You can get a
relatively recent approximation to the C standard, such as N869.
For a bzip2 compressed text version try:

<http://cbfalconer.home .att.net/download/n869_txt.bz2>

and then you can join in on the amusing hair splitting that goes on
around here.

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home .att.net>

--
Posted via a free Usenet account from http://www.teranews.com

Sep 25 '07 #4
On Tue, 25 Sep 2007 01:51:10 -0400, CBFalconer <cb********@yah oo.com>
wrote:
somenath wrote:
... snip ...

I am trying to learn C language by studying K&R book thoroughly,
daily reading this news group and I write code in C as part of
daily work but I don't need to use most of the features of C for
example bit wise operator. But I am passionate about gaining
expertise in C language.

You will do fine with K&R, provided it is K&R2. You can get a
relatively recent approximation to the C standard, <snip>
In case it wasn't obvious, that abbreviation means the second edition
of the Kernighan & Ritchie book, revised in 1988 to agree (mostly)
with the then-pending ANSI standard that became C89 (and C90). (Or if
you want to be really pedantic, the then-pending drafts which became
the C89 standard.)

Since the revision process wasn't perfect -- nor the publishers and
authors, though the latter at least were (and are) very good -- you
should also get the errata available online, from Ritchie et al's
website: http://cm.bell-labs.com/cm/cs/cbook/index.html
specifically http://cm.bell-labs.com/cm/cs/cbook/2ediffs.html

- formerly david.thompson1 || achar(64) || worldnet.att.ne t
Oct 8 '07 #5

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

Similar topics

7
1764
by: Ryan Walker | last post by:
Hi, I'm getting started with python and have almost zero programming experience. I'm finding that there are tons of tutorials on the internet -- such as the standard tutorial at python.org -- that tell you all about the language. That is, what are the methods, functions, modules, syntax, punctuation, etc. No problem there! Meanwhile, I'm finding that there is very little (that I can find) about how to do basic logistical things related...
14
2055
by: Xah Lee | last post by:
is there a way to condense the following loop into one line? # -*- coding: utf-8 -*- # python import re, os.path imgPaths= # change the image path to the full sized image, if it exists
17
1806
by: Karsten Kvistad | last post by:
Hi! I'm currently teaching myself the C programming language. The problem is I don't know what to do next. I know file I/O, pointers, functions and the like. I do not know how to make .h files, Makefiles or anything else required for large projects. Should I learn how to do this, sockets, GTK, curses or what? -- (o_ Confused, (/)_ Karsten Kvistad
29
3488
by: Jhon smith | last post by:
Hi,all,I was just wondering if I am likly to have any problems trying to learn C from older books,I have some from the late 80`s,mid/late 90`s. I am using Dev-C++ on the pc windows platform,But I have noticed small differnces in the books such as,int main(),main(void),fprintf,and others,just wondering if these older books are still worth trying to learn from as Im on a very tight budget and can`t really afford any thing else,or are they...
7
2573
by: MgGuigg | last post by:
Hello all, This is my first time posting a question to this forum, so here is hoping I am following protocol. I am scraping the rust off my old Basic programming skills, and have just recently upgraded to VB.NET, and I have a lot of catching up to do. That being said, I have come a long way in a short while, however, I am stumped at the moment. I have read through days of posts, but have not been able to address my specific question, so...
7
1579
by: Max | last post by:
On monday I start a semester course in Python (the alternative was Java). I was looking through the course outline and noticed the following: 1) UserDict is used. This is deprecated, right? 2) There is no mention of list comprehensions, but map and filter are taught early and then revisited later. I don't think this is good: list comprehensions are, IMO, one of Python's great features, Psyco prefers them, they're more pythonic, and map...
5
1767
by: romiro | last post by:
Hi all, I'm a PHP5 developer looking to "broaden my horizons" so to speak by learning a new language. I emphasize the 5 in PHP since I have fully engrossed myself in the full OOP of version 5 with my own ground-up projects as well as some work with PRADO (http://pradosoft.com) I've dabbled with a number of languages in the past, Python being no exception, but always ended up coming back to PHP due to being comfortable with it. Python...
12
1596
by: Mitch | last post by:
I'm wondering if I'm doing myself a disservice by learning Visual C#, considering it does so much of the work behind the scenes. Should I be learning console apps first? I still haven't found the right book. C# For Dummies started out great, then the guy just goes into the stratosphere, with no explanation on how he went from point B to point X !
10
1706
by: Terrence Brannon | last post by:
Hello, The most common way of dynamically producing HTML is via template engines like genshi, cheetah, makotemplates, etc. These engines are 'inline' --- they intersperse programming constructs with the HTML document itself. An opposite approach to this form of dynamic HTML production is called push-style templating, as coined by Terence Parr:
0
8421
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
8742
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
8621
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
7354
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...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5643
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
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1971
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.