Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

k&r

Name: Anonymous 2010-09-02 0:50

should i read k&r

Name: Anonymous 2010-09-02 22:33

>>40
Your mom's been in the public domain since 1997.

Name: Anonymous 2010-09-02 22:59

>>41
back to /b/, please.

Name: Anonymous 2010-09-03 0:04

>>22
'\n' has type int. C99 6.4.4.4p10, first sentence: An integer character constant has type int.

Name: Anonymous 2010-09-03 0:05

>>39
K&R?  Paper books?

all you need is the C99 standard

Name: Anonymous 2010-09-03 5:46

Name: Anonymous 2010-09-03 7:13

>>43
Slowly this is beginning to annoy the shit out of me.
I can't help your fucking reading-disability.

                                                 
6.4.4p1

        constant:
                integer-constant
                floating-constant
                enumeration-constant
                character-constant


6.4.4p2

        Each constant shall have a type and the value of a constant shall be in the range of
        represantable values for its type.


6.4.4.4p1
        character-constant:  
                ' c-char-sequence '
                ...

        c-char-sequence
                c-char
                c-char-sequence c-char

        c-char
                any member of the source character set except [...].
                ...

        ...


6.4.4.4p10
        An integer character constant has type int. The value of an integer character constant
        containing a single character that maps to a single-byte execution character is the
        numerical value of the representation of the mapped character interpreted as an integer.
        The value of an integer character constant containing more than one character (e.g.,
        'ab'), or containing a character or escape sequence that does not map to a single-byte
        execution character, is implementation-defined. If an integer character constant contains
        a single character or escape sequence, its value is the one that results when an object with
        type char whose value is that of the single character or escape sequence is converted to
        type int
.
                                                 

One word the forced quotation of n1256 thread over.

Name: Anonymous 2010-09-03 7:50

>>46
Technically a char is an integral data type.

Name: Anonymous 2010-09-03 8:15

>>47
see
>>22

Name: Anonymous 2010-09-03 8:28

>>46
And? '\n' still has type int, regardless of its value.

Name: Anonymous 2010-09-03 8:49

>>45
horrible single quotes

Name: Anonymous 2010-09-03 9:02

>>50
horrible post

Name: Anonymous 2010-09-03 10:18

>>45

any chance you could upload your copy somewhere?

Name: Anonymous 2010-09-03 10:23

Lads, before this thread continues any further, I would like you all to stop and ask yourselves which is more likely: that the single most widely read document on C, which nearly every C programmer in the history of the language has read and which has gone through countless revisions, has an error in it that no-one but you has spotted, or that the unpleasant person who created your pirated copy of K&R fucked up with OCR and didn't bother to proofread adequately?

Name: Anonymous 2010-09-03 10:32

>>53
good post!

I'd like to suggest
http://cm.bell-labs.com/cm/cs/cbook/2ediffs.html and
http://www.eskimo.com/~scs/cclass/krnotes/top.html
to accompany any ambitious K&R reader, though.

Name: Anonymous 2010-09-03 16:05

I got a copy of the original printing of the 2nd edition in perfect condition in the `Free to take' section of a local flea market earlier this year. I kept it and gave my other copy to a friend. I guess someone hasn't read her K&R.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List