K&R Errata?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Zach

    #1

    K&R Errata?

    I am looking for a comprehensive list of errors in Kernighan &
    Ritchie's "The C Programming Lanuage: 2nd Edition (ANSI C)"

    Also what is the best way to work through the list with the Errata? I
    don't want to constantly refer back to the Errata since that may slow
    down my learning but I also don't want to learn something that isn't
    100% accurate.

    Zach
  • Default User

    #2
    Re: K&R Errata?

    Zach wrote:
    I am looking for a comprehensive list of errors in Kernighan &
    Ritchie's "The C Programming Lanuage: 2nd Edition (ANSI C)"
    Best to go to the source:

    <http://cm.bell-labs.com/cm/cs/cbook/index.html>




    Brian

    Comment

    • Ioannis Vranos

      #3
      Re: K&amp;R Errata?

      Default User wrote:
      Zach wrote:
      >
      >I am looking for a comprehensive list of errors in Kernighan &
      >Ritchie's "The C Programming Lanuage: 2nd Edition (ANSI C)"
      >
      Best to go to the source:
      >
      <http://cm.bell-labs.com/cm/cs/cbook/index.html>

      Just got my English copy of K&R2. Does anyone know if the above errata
      contain fixes regarding inconsistencies between "Appendix A: Reference
      manual" and the actual final ANSI C89/ISO C90 (or better, C95)?

      Thanks.

      Comment

      • Ioannis Vranos

        #4
        Re: K&amp;R Errata?

        About the errata:

        "53(§2.12): The note under the table should say & as well as + - * has
        higher precedence as a unary operator."


        Can someone say what the entire note text under that table should be?

        Comment

        • user923005

          #5
          Re: K&amp;R Errata?

          On Mar 20, 2:25 pm, Ioannis Vranos <ivra...@nospam .no.spamfreemai l.gr>
          wrote:
          About the errata:
          >
          "53(§2.12): The note under the table should say & as well as + - * has
          higher precedence as a unary operator."
          >
          Can someone say what the entire note text under that table should be?

          C++ operators included in this one:

          Comment

          • Ioannis Vranos

            #6
            Re: K&amp;R Errata?

            user923005 wrote:
            On Mar 20, 2:25 pm, Ioannis Vranos <ivra...@nospam .no.spamfreemai l.gr>
            wrote:
            >About the errata:
            >>
            >"53(§2.12): The note under the table should say & as well as + - * has
            >higher precedence as a unary operator."
            >>
            >Can someone say what the entire note text under that table should be?
            >

            C++ operators included in this one:
            http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B

            None of these links answer my question.

            Comment

            • c gordon liddy

              #7
              Re: K&amp;R Errata?


              "Ioannis Vranos" <ivranos@nospam .no.spamfreemai l.grwrote in message
              news:frukp6$ql$ 1@ulysses.noc.n tua.gr...
              About the errata:
              >
              "53(§2.12): The note under the table should say & as well as + - * has
              higher precedence as a unary operator."
              >
              >
              Can someone say what the entire note text under that table should be?
              Unaer haben +, -, * und & mehr Vorrang als binaer. ?

              --
              C. Gordon Liddy

              "Virile, vigorous, potent."


              Comment

              • user923005

                #8
                Re: K&amp;R Errata?

                On Mar 20, 2:56 pm, Ioannis Vranos <ivra...@nospam .no.spamfreemai l.gr>
                wrote:
                user923005 wrote:
                On Mar 20, 2:25 pm, Ioannis Vranos <ivra...@nospam .no.spamfreemai l.gr>
                wrote:
                About the errata:
                >
                "53(§2.12): The note under the table should say & as well as + - * has
                higher precedence as a unary operator."
                >
                Can someone say what the entire note text under that table should be?
                >>
                None of these links answer my question.
                From that chart:
                Operator Description
                -------- -----------------
                & Address
                & Bitwise AND
                * Dereference
                * Multiplication
                + Unary plus
                + Addition
                ++ Postfix increment
                ++ Prefix increment
                - Unary minus
                - Subtraction
                -- Postfix decrement
                -- Prefix decrement

                As you know, these operators are the same symbols but have different
                meanings and precendence when used in the second sense.
                From the position on the chart in the link that I posted, you can tell
                which ones have higher precedence.

                Comment

                • Ioannis Vranos

                  #9
                  Re: K&amp;R Errata?

                  c gordon liddy wrote:
                  "Ioannis Vranos" <ivranos@nospam .no.spamfreemai l.grwrote in message
                  news:frukp6$ql$ 1@ulysses.noc.n tua.gr...
                  >About the errata:
                  >>
                  >"53(§2.12): The note under the table should say & as well as + - * has
                  >higher precedence as a unary operator."
                  >>
                  >>
                  >Can someone say what the entire note text under that table should be?
                  >
                  Unaer haben +, -, * und & mehr Vorrang als binaer. ?

                  In english?

                  Comment

                  • c gordon liddy

                    #10
                    Re: K&amp;R Errata?


                    "Ioannis Vranos" <ivranos@nospam .no.spamfreemai l.grwrote in message
                    news:fruunu$n43 $1@ulysses.noc. ntua.gr...
                    >c gordon liddy wrote:
                    >"Ioannis Vranos" <ivranos@nospam .no.spamfreemai l.grwrote in message
                    >news:frukp6$ql $1@ulysses.noc. ntua.gr...
                    >>About the errata:
                    >>>
                    >>"53(§2.12): The note under the table should say & as well as + - * has
                    >>higher precedence as a unary operator."
                    >>>
                    >>>
                    >>Can someone say what the entire note text under that table should be?
                    >>
                    >Unaer haben +, -, * und & mehr Vorrang als binaer. ?
                    >
                    >
                    In english?
                    >
                    Can't help you there.

                    --
                    C. Gordon Liddy

                    "Virile, vigorous, potent."


                    Comment

                    • Spiro Trikaliotis

                      #11
                      Re: K&amp;R Errata?

                      Gia sou Ioanni,

                      Ioannis Vranos wrote:
                      c gordon liddy wrote:
                      >Unaer haben +, -, * und & mehr Vorrang als binaer. ?
                      >
                      In english?
                      I'll just translate the sentence of "c gordon liddy". I do not know if
                      it is correct for the table, or if it makes sense at all. ;)

                      "If used unary, the '+', '-', '*' and '&' have higher precendence than
                      if used binary."

                      HTH,
                      Spiro.

                      --
                      Spiro R. Trikaliotis http://opencbm.sf.net/
                      http://www.trikaliotis.net/ http://www.viceteam.org/

                      Comment

                      Working...