473,625 Members | 3,330 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is this a good C tutorial?

Hello,

I'm considering reading some C tutorials. I found this one.

http://www.crasseux.com/books/ctutorial/
(The GNU C Programming Tutorial)

Can anyone tell me if it is good or not? Also do you have any other
recommendations for other good tutorials?

Thanks a lot.

--
Email: The handle, (dot seperated), at gmail dot com.
Mar 6 '07 #1
8 1982

At_sea_with_C wrote:
Hello,

I'm considering reading some C tutorials. I found this one.

http://www.crasseux.com/books/ctutorial/
(The GNU C Programming Tutorial)

Can anyone tell me if it is good or not? Also do you have any other
recommendations for other good tutorials?

Thanks a lot.

--
Email: The handle, (dot seperated), at gmail dot com.
Start reading and experimenting with K&R C. You will be a master !@c

Mar 6 '07 #2
Subra wrote:
At_sea_with_C wrote:
Hello,

I'm considering reading some C tutorials. I found this one.

http://www.crasseux.com/books/ctutorial/
(The GNU C Programming Tutorial)

Can anyone tell me if it is good or not? Also do you have any other
recommendations for other good tutorials?

Thanks a lot.

--
Email: The handle, (dot seperated), at gmail dot com.

Start reading and experimenting with K&R C. You will be a master !@c
K&R C is obsolete. Telling the OP to learn it, instead of ISO C, is
incredibly bad advice.

To the OP:
The book at the link seems to be pretty decent. I'll look at it in
more detail later. Try the following tutorial also, (by a regular of
this group):

<http://www.eskimo.com/~scs/cclass/>

Mar 6 '07 #3

santosh wrote:
Subra wrote:
At_sea_with_C wrote:
I'm considering reading some C tutorials. I found this one.
>
http://www.crasseux.com/books/ctutorial/
(The GNU C Programming Tutorial)
>
Can anyone tell me if it is good or not? Also do you have any other
recommendations for other good tutorials?
Start reading and experimenting with K&R C. You will be a master !@c

K&R C is obsolete. Telling the OP to learn it, instead of ISO C, is
incredibly bad advice.
but the latest version of K&R (2nd edition) describes ISO C.
Admittedly
not the latest C99 standard, but C99 is so rarely implemented that
sticking
to C89 gives better portability.

http://cm.bell-labs.com/cm/cs/cbook/
To the OP:
The book at the link seems to be pretty decent. I'll look at it in
more detail later. Try the following tutorial also, (by a regular of
this group):

<http://www.eskimo.com/~scs/cclass/>

--
Nick Keighley

Mar 6 '07 #4

Nick Keighley wrote:
santosh wrote:
Subra wrote:
At_sea_with_C wrote:
I'm considering reading some C tutorials. I found this one.

http://www.crasseux.com/books/ctutorial/
(The GNU C Programming Tutorial)

Can anyone tell me if it is good or not? Also do you have any other
recommendations for other good tutorials?
Start reading and experimenting with K&R C. You will be a master !@c
K&R C is obsolete. Telling the OP to learn it, instead of ISO C, is
incredibly bad advice.

but the latest version of K&R (2nd edition) describes ISO C.
<snip>

Apologies to Subra. I didn't read his post properly. I mistook his
sentence to mean that he was recommending pre-ANSI K&R C, (the
language).

Rereading it, it's obvious he meant K&R, (the book), which is
excellent advice, though the OP did ask for tutorials.

Mar 6 '07 #5
On Tue, 06 Mar 2007 16:03:20 +0530, At_sea_with_C wrote:
Hello,

I'm considering reading some C tutorials. I found this one.

http://www.crasseux.com/books/ctutorial/
(The GNU C Programming Tutorial)

Can anyone tell me if it is good or not? Also do you have any other
recommendations for other good tutorials?

Thanks a lot.
I had a brief look at one section "Advanced operators" and found some
mistakes (typos maybe but confusing none the less).
In the subsection on the comma operator: "You can separate almost any
kind of C statment from another with a comma operator. The comma-separated
expressions are evaluated from left to right and the value...".
But the comma operator separates expressions, not statements.

In the subsection "Hidden operators and values"
"The value of an expression is the result of the operation carried out in
the expression. Increment and decrement statements have a value that is
one greater than or one less than the value of the variable they act upon,
respectively.
Consider the following two statements:
c = 5;
c++;
The expression c++ in the above context has the value 6.
"
No, it has the value 5, and after the above c has the value 6.
The value of an expression is *not* always the result of the operation.
And note the confusion in "Increment and decrement statements".

In the subsection "Postfix and prefix ++ and --"
"int my_int = 3;
printf ("%d\n", my_int++);
The increment operator is hidden in the parameter list of the printf call.
The variable my_int has a value before the ++ operator acts on it (3) and
afterwards (4).
Which value is passed to printf? Is my_int incremented before or after
the printf call? This is where the two forms of the operator (postfix and
prefix) come into play.
If the increment or decrement operator is used as a prefix, the operation is
performed before the function call. If the operator is used as a postfix, the
operation is performed after the function call."
I don't think the talk of before/after function call is helpful.
If my_int were a global variable then assuming the increment in
f(my_int++) happened after the call to f() would lead to errors!

I suppose 3 errors (I didn't notice any others) in a section is not too
bad, but I don't think I'd recommend the tutorial.
Duncan

Mar 6 '07 #6
santosh wrote, On 06/03/07 10:55:
Subra wrote:
>At_sea_with_ C wrote:
>>Hello,

I'm considering reading some C tutorials. I found this one.

http://www.crasseux.com/books/ctutorial/
(The GNU C Programming Tutorial)

Can anyone tell me if it is good or not? Also do you have any other
recommendatio ns for other good tutorials?

Thanks a lot.

--
Email: The handle, (dot seperated), at gmail dot com.
Start reading and experimenting with K&R C. You will be a master !@c

K&R C is obsolete. Telling the OP to learn it, instead of ISO C, is
incredibly bad advice.

To the OP:
The book at the link seems to be pretty decent. I'll look at it in
more detail later.
It definitely has some problems. It says to cast the value returned by
malloc and does not tell you to #include <stdlib.hfirs t. At least, not
in the section about memory allocation. I consider this a serious
failure. Admittedly I only looked where I thought there were most likely
to be errors!
Try the following tutorial also, (by a regular of
this group):

<http://www.eskimo.com/~scs/cclass/>
This and K&R2 are good references. K&R2 is well worth the money and I
still refer to it. Also for reference the comp.lang.c FAQ at
http://c-faq.com/
--
Flash Gordon
Mar 6 '07 #7
On Mar 6, 3:33 pm, At_sea_with_C <blindal...@dev .null.invalidwr ote:
Hello,

I'm considering reading some C tutorials. I found this one.

http://www.crasseux.com/books/ctutorial/
(The GNU C Programming Tutorial)

Can anyone tell me if it is good or not? Also do you have any other
recommendations for other good tutorials?
you will be better with learning from a hard-copy. trust me, online
learning is very different from learning form a hard-copy. i have
tried that and online learning is never a good idea.

In case of hard-copy, nothing beats K&R2. trust me and if that does
not work, try K.N. King.

BTW, the best online source is:

http://www.eskimo.com/~scs/cclass/notes/top.html
- arnuld
http://arnuld.blogspot.com

Mar 6 '07 #8
santosh wrote:
Subra wrote:
.... snip ...
>>
Start reading and experimenting with K&R C. You will be a master

K&R C is obsolete. Telling the OP to learn it, instead of ISO C,
is incredibly bad advice.
No, telling the OP to ignore it is incredibly bad advice. K&R2 is
up to date WRT C90, after including the published errata.

--
<http://www.cs.auckland .ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfoc us.com/columnists/423>

"A man who is right every time is not likely to do very much."
-- Francis Crick, co-discover of DNA
"There is nothing more amazing than stupidity in action."
-- Thomas Matthews
Mar 6 '07 #9

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

Similar topics

52
6399
by: Tony Marston | last post by:
Several months ago I started a thread with the title "What is/is not considered to be good OO programming" which started a long and interesting discussion. I have condensed the arguments into a single article which can be viewed at http://www.tonymarston.net/php-mysql/good-bad-oop.html I fully expect this to be the start of another flame war, so sharpen your knives and get stuck in!
12
1893
by: D. Layman | last post by:
Hello group, After quite a long time of consideration, I'v finally decided to switch from Java to C. Given the condition that almost without any knowledge on C and 3 years expereince on java, , Which tutorial or book might be good for me to start with? It would be the best if it's (freely) available on the net. I'd prefer standard C, anyway some Gnu extensions are just fine. I'd appreciate any of your recommendation of book/tutorials or...
6
4060
by: William Foster | last post by:
Does anyone know of a good online tutorial for C# focused on beginners. I have been to many great sites like csharpfriends, csharp-corner etc looking for good tutorials and have had no luck. Any advice would be appreciated. Bill Foster
10
2171
by: Harley | last post by:
Hello, I was VERY blessed with a Christmas gift of visual studio .net from a man I hardly know who had heard of my plans of software developement. So I am probably the only person in the world who actualy has this great IDE and don't even know vb.net (or c sharp etc.). I have some prior exposure to simple scripting language such as javascript and I understand data types etc. (basic programming concepts and procedures) but I don't have any...
3
1485
by: Roy Smith | last post by:
My wife wants to learn Python. Can anybody suggest a good tutorial for her to read? She's a PhD molecular biologist who is a pretty advanced Unix user. She mucks about with Perl scripts doing things like text processing and even some simple CGI scripts, but has no formal programming training. I looked at Dive Into Python, but it's going to be way over her head. I didn't think the tutorial on www.python.org would do it for her either....
2
2100
by: sara | last post by:
Hi All, I learned C++ long time ago and now I want to review all of its details in a short time like a week. I wonder if there is a good tutorial you know which I can read for this purpose. Thanks a lot.
2
8543
by: ppuniversal | last post by:
Hello, Can someone tell a good Tutorial on Network Programming in C++, except Beej's Guide and Vijay Mukhi's tutorials. I want to make a Client Server application in C++ which will involve huge amount of thread programming also, so I wanted a good tutorial which can give me good understanding of all the functions used for Network Programming using Standard C++ (and not using any Network Library other than Winsocks and those available in...
4
1559
by: Jim Aikin | last post by:
I'd like to learn JavaScript while sitting in my easy chair with my laptop on my lap. Option 1: Buy a wireless router so I can access the plethora of online- only tutorials from anywhere in the house. Option 2: Buy a book and try to figure out how to read a book with one hand while using the laptop with the other. Option 3: Find a good downloadable tutorial (either PDF or a bundle of
75
3363
by: Amkcoder | last post by:
http://amkcoder.fileave.com/L_BitWise.zip http://amkcoder.fileave.com/L_ptr2.zip
0
8189
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8694
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
8635
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...
1
8356
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8497
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...
1
6118
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
4089
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
2621
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
1
1803
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.