C means C89 or C99?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jrefactors@hotmail.com

    C means C89 or C99?

    When people say C programming language, it means C89? or C99? Does it
    have standard C? ANSI C is what version? It is confusing that there are
    so many versions

    please advise.
    thanks!!

  • Gordon Burditt

    #2
    Re: C means C89 or C99?

    >When people say C programming language, it means C89? or C99?

    Yes.
    [color=blue]
    >Does it
    >have standard C? ANSI C is what version?[/color]

    The current version is C99, but many of the compilers on the
    market only claim conformance to C89.
    [color=blue]
    >It is confusing that there are
    >so many versions[/color]

    Two is "so many"?

    Gordon L. Burditt

    Comment

    • Walter Roberson

      #3
      Re: C means C89 or C99?

      In article <115ujj9549tcn5 e@corp.supernew s.com>,
      Gordon Burditt <gordon@hammy.b urditt.org> wrote:
      [color=blue][color=green]
      >>It is confusing that there are
      >>so many versions[/color][/color]
      [color=blue]
      >Two is "so many"?[/color]

      C89 == older ANSI C
      C90 == older ISO C. I seem to recall someone saying there was a very
      small difference between the two.
      C94 == technical clarification
      C99 == current ISO C == current ANSI C

      I don't recall offhand if there are others.

      For the purposes of the OP, probably the only distinction
      worth making is C89 vs C99.
      --
      "Never install telephone wiring during a lightning storm." -- Linksys

      Comment

      • Keith Thompson

        #4
        Re: C means C89 or C99?

        jrefactors@hotm ail.com writes:[color=blue]
        > When people say C programming language, it means C89? or C99? Does it
        > have standard C? ANSI C is what version? It is confusing that there are
        > so many versions[/color]

        Yes, it's confusing.

        In the strictest sense, C99 is the current standard, and C *should*
        refer to C99. However, the C99 standard hasn't caught on as quickly
        as one might have hoped, so C89/C90 is still more widely supported
        than C99.

        ANSI C originally referred to the C89 standard, which was produced by
        ANSI. ISO adopted C89 (with cosmetic changes) as C90, and ANSI
        accepted ISO's standard. Then ISO produced the C99 standard,
        officially superseding C90, and ANSI accepted ISO C99. I don't know
        whether than means it can be referred to as "ANSI C".

        Different people mean different things when they say C. In this
        newsgroup, it can refer to any of the C standards; usually either it's
        clear from context, or it doesn't matter.

        It's safest always to refer to C90 or C99 explicitly if it matters.

        --
        Keith Thompson (The_Other_Keit h) kst-u@mib.org <http://www.ghoti.net/~kst>
        San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
        We must do something. This is something. Therefore, we must do this.

        Comment

        Working...