about ANSI C Standard...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AmberJain
    Recognized Expert Contributor
    • Jan 2008
    • 922

    about ANSI C Standard...

    HELLO,

    Is it necessary for a C programmer to have an ANSI C standard or it's sufficient to own Kernigham and Rithie's The C programming language?

    I know that the ritchie's book is quite brief and precise. But still, do I need a ANSI C standard?

    Also,
    Which ANSI C standard should I prefer i.e. ANSI C89 or ANSI C99 to implement in my C programs?
    Can you tell me pros and cons of both standards?
    Also, is there a newer standard in existence better than ANSI C99?


    Also,
    Is ritchie's book's edition second (ANSI C) good or should I buy the latest edition of book? (the book is probably ANSI C89 based)


    THANKS IN ADVANCE TO EVERYONE....... ..........

    ============
    AmbrNewlearner
    ============
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    C99 is the latest Standard and indeed K&R2 predates the first C89 Standard
    but it is extremely good and considered 'the bible' of C. There are many C99
    Standard drafts around because the commitee 'leaked' a bit in those days;
    you can probably find a copy somewhere on the net. I bet you'll find something
    in the usenet group comp.lang.c.mod erated; check their FAQlist.

    If you want to be a 'language lawyer' a copy of the Standard is a must; it doesn't
    leave any room for guessing nor bluffing. Check for a file named n869 for one of
    the latest draft texts.

    kind regards,

    Jos

    Comment

    • AmberJain
      Recognized Expert Contributor
      • Jan 2008
      • 922

      #3
      Originally posted by JosAH
      C99 is the latest Standard and indeed K&R2 predates the first C89 Standard
      but it is extremely good and considered 'the bible' of C. There are many C99
      Standard drafts around because the commitee 'leaked' a bit in those days;
      you can probably find a copy somewhere on the net. I bet you'll find something
      in the usenet group comp.lang.c.mod erated; check their FAQlist.

      If you want to be a 'language lawyer' a copy of the Standard is a must; it doesn't
      leave any room for guessing nor bluffing. Check for a file named n869 for one of
      the latest draft texts.

      kind regards,

      Jos
      THANKS JosAH...

      BTW, what are your views about this question of mine?
      Originally posted by ambrnewlearner
      Is ritchie's book's edition second (ANSI C) good or should I buy the latest edition of book? (the book I possess is probably ANSI C89 based)
      And, also which ANSI C standard you follow-ANSI C89 or ANSI C99?

      THANKS......... ..

      ============
      AmbrNewlearner
      ============

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        I only know of K&R2 (which predates C89 a bit) as the latest edition.

        kind regards,

        Jos

        Comment

        • AmberJain
          Recognized Expert Contributor
          • Jan 2008
          • 922

          #5
          Can you please have a look at the picture/image of the book in the link below and confirm the book's latest edition----->


          LINK

          THANKS......... ..

          ============
          AmbrNewlearner
          ============

          Comment

          • JosAH
            Recognized Expert MVP
            • Mar 2007
            • 11453

            #6
            Yep, that K&R2 and it's the latest edition as far as I know.

            kind regards,

            Jos

            Comment

            • Banfa
              Recognized Expert Expert
              • Feb 2006
              • 9067

              #7
              I have that book, it's good. Also although C99 is the latest standard I think many C compilers (not all) only support C89 (or C90, C89 wasn't a ANSI standard I think C90 is the ANSI standard but is identical to C89 or some similar red tape mumbo jumbo).

              I know many of the C compilers I use on micro-controllers are C89 compilers. I tend to find my self either using C89 or C++ depending on available toolset for the platform.

              I have managed to successfully be a programmer for 20 years without owning a copy of the standard. Even when I became more concerned with writing standard compliant code a few of years ago I found owning the standard was not necessary, I just browsed the news group comp.lang.c and the faq pages produced by its members.

              Comment

              • Atos
                New Member
                • Jun 2008
                • 9

                #8
                I think that there is no need for owing the ANSI C STANDARD except if you want to wrtite a compiler or some sort....
                Besides, the standard is a struct document about the syntax of the language and so on....
                I think that in K&R book somewhere ( or in another book i do not remember exactly ) states what i said above. If you wanna write a compiler take the standard, else not.

                Comment

                • AmberJain
                  Recognized Expert Contributor
                  • Jan 2008
                  • 922

                  #9
                  THANKS to JosAH, Banfa, Atos........... ...

                  ============
                  AmbrNewlearner
                  ============

                  Comment

                  Working...