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

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 1922
On Sep 24, 9:39 pm, somenath <somenath...@gmail.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********@yahoo.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.net
Oct 8 '07 #5

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

Similar topics

7
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...
14
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
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,...
29
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...
7
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...
7
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)...
5
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...
12
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...
10
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.