473,569 Members | 2,352 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

what's K&R2?

this phrase has been mentioned many times in this NG and it seems like
everyone know what it's. is it a book? a standard? or a guide of some
sort? where can i read more about K&R2? thanks!
Nov 13 '05 #1
5 7967
In article <c2************ **************@ posting.google. com>,
David <dz****@hotmail .com> wrote:
this phrase has been mentioned many times in this NG and it seems like
everyone know what it's. is it a book? a standard? or a guide of some
sort? where can i read more about K&R2? thanks!


"The C Programming Language, second edition" by Kernighan and Ritchie.

Written by the people who designed the language (the first edition was
the generally accepted definition of the language before the 1989 ANSI
standard), and typically recommended as a good introduction to C for
people who already know another programming language and as a general
reference.

See http://cm.bell-labs.com/cm/cs/cbook/
dave

--
Dave Vandervies dj******@csclub .uwaterloo.ca
Why don't I just lock everyone up and throw away the key and be done with the
whole business? Sheesh, I can see now why all dictators end up as bad guys...
--Richard Heathfield in comp.lang.c
Nov 13 '05 #2
David wrote:
this phrase has been mentioned many times in this NG and it seems like
everyone know what it's. is it a book? a standard? or a guide of some
sort? where can i read more about K&R2? thanks!


The FAQ ( http://www.eskimo.com/~scs/C-faq/sx1.html ) says:

Brian W. Kernighan and Dennis M. Ritchie, The C Programming
Language, Second Edition, Prentice Hall, 1988, ISBN 0-13-110362-8,
0-13-110370-9. [K&R2]

--
Tom Zych
This is a fake email address to thwart spammers.
Real address: echo 'g******@cbobk. pbz' | rot13
Nov 13 '05 #3
David wrote:
this phrase has been mentioned many times in this NG and it seems like
everyone know what it's. is it a book? a standard? or a guide of some
sort? where can i read more about K&R2? thanks!


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

HTH,
--ag

--
Artie Gold -- Austin, Texas
Oh, for the good old days of regular old SPAM.

Nov 13 '05 #4
In <bk**********@t abloid.uwaterlo o.ca> dj******@csclub .uwaterloo.ca (Dave Vandervies) writes:
In article <c2************ **************@ posting.google. com>,
David <dz****@hotmail .com> wrote:
this phrase has been mentioned many times in this NG and it seems like
everyone know what it's. is it a book? a standard? or a guide of some
sort? where can i read more about K&R2? thanks!

Did you try reading the FAQ?
"The C Programming Language, second edition" by Kernighan and Ritchie.

Written by the people who designed the language (the first edition was


Nope, Kernighan had precious little to do with the language design.
After Ritchie, the most influential person WRT the original C language
design was, probably, Ken Thompson.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 13 '05 #5
Dave Vandervies wrote:

In article <c2************ **************@ posting.google. com>,
David <dz****@hotmail .com> wrote:
this phrase has been mentioned many times in this NG and it seems like
everyone know what it's. is it a book? a standard? or a guide of some
sort? where can i read more about K&R2? thanks!


"The C Programming Language, second edition" by Kernighan and Ritchie.

Written by the people who designed the language (the first edition was
the generally accepted definition of the language before the 1989 ANSI
standard), and typically recommended as a good introduction to C for
people who already know another programming language and as a general
reference.

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

Otherwise known as the "New Testament"...

--
+----------------------------------------------------------------+
| Charles and Francis Richmond richmond at plano dot net |
+----------------------------------------------------------------+
Nov 13 '05 #6

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

Similar topics

16
1669
by: TTroy | last post by:
I FOUND MAJOR ERRORS in K&R2 (making it almost useless for the herein mentioned topics). K&R2 Section 5.9 Pointers vs. Multidimension Arrays starts of like this... "Newcomers to C are somtimes confused about the difference between a two-dimensional array and an array of pointers..." then continues to explain int *b; to be...
3
1916
by: Sunny | last post by:
Hi, Well this might look like a dumb question to 99.99% of u but what exactly is K&R2 and where can I get it? Secondly alot of people say that you can learn by reading good books on C. I know the one by Dennis Ritchie is good but can any one mention some other books as well Thanx.
16
2257
by: Josh Zenker | last post by:
This is my attempt at exercise 1-10 in K&R2. The code looks sloppy to me. Is there a more elegant way to do this? #include <stdio.h> /* copies input to output, printing */ /* series of blanks as a single one */ int main() { int c;
5
1465
by: Clausfor | last post by:
Hello everybody, I cannot find where in the K&R2 it is stated that variables must be defined at the beginning of a block and not within other lines. In Section 1.2 I read: In C, all variables must be declared before they are used, usually at the beginning of the function before any executable statements. USUALLY does not mean ABSOLUTELY,...
2
2281
by: arnuld | last post by:
there is a solution on "clc-wiki" for exercise 1.17 of K&R2: http://clc-wiki.net/wiki/K%26R2_solutions:Chapter_1:Exercise_17 i see this uses pointers whereas K&R2 have not discussed pointers yet. i have created a solution myself by modifying the example programme of section 1.19. i tried to find the source-code of K&R2 using Google. i...
8
4748
by: arnuld | last post by:
i have created a solutions myself. it compiles without any trouble and runs but it prints some strange characters. i am not able to find where is the trouble. --------------------------------- PROGRAMME -------------------------------- /* K&R2 section 1.9 exercise 1.19
16
1786
by: arnuld | last post by:
i have created solution which compiles and runs without any error/ warning but it does not work. i am not able to understand why. i thought it is good to post my code here for correction before looking at CLC-Wiki for K&R2 solutions: --------------- PROGRAMME ------------ /* K&R2 section 1.5.3, exercise 1-9 STATEMENT: write a programme...
1
1380
by: arnuld | last post by:
this is "word counting" example programme from K&R2 section 1.5.4. it runs without any error/warning but does not work properly, i.e. the OUTPUT 1 should be: NEWLINES: 1 WORDS: 1 CHARs: 5
24
1778
by: Anthony Irwin | last post by:
Hi all, I have been going through the k&r2 book and all the examples are done with main() instead of int main(void) and k&r2 in the start of chapter 1 does not return 0 so I haven't yet either. I did two compiles shown below. $ gcc -std=c89 -Wall exercise_1-9.c -o exercise_1-9 exercise_1-9.c:5: warning: return type defaults to `int'
0
7703
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...
0
7618
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...
1
7678
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...
0
6286
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...
1
5514
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...
0
5222
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...
0
3644
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2116
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
0
944
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...

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.