C means C89 or C99?

J

jrefactors

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!!
 
G

Gordon Burditt

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

Yes.
Does it
have standard C? ANSI C is what version?

The current version is C99, but many of the compilers on the
market only claim conformance to C89.
It is confusing that there are
so many versions

Two is "so many"?

Gordon L. Burditt
 
W

Walter Roberson

It is confusing that there are
so many versions
[/QUOTE]
Two is "so many"?

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.
 
K

Keith Thompson

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

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.
 
P

pete

Two is "so many"?

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.[/QUOTE]

There's K&R C.
For the purposes of the OP, probably the only distinction
worth making is C89 vs C99.

That's what I think too.
 
C

Chris Hills

[QUOTE="pete said:
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.

There's K&R C.[/QUOTE]

That is not a standard C and predates C90.

C90 and C99 Though most compilers are C95/6 which is C90 + A1 and the
TC's

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/\
/\/\/ (e-mail address removed) www.phaedsys.org \/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
 
C

Chris Hills

Two is "so many"?

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.[/QUOTE]

Originally there was K&R the original language definition in 197* As I
recall they were on the ANSI panel that did the ANSI C and due to the
quirks of publishing deadlines got K&R2 out in 1988 just ahead of ANSI
C89

However as there have been a LOT of changes to C90 (Amendment 1 + some
TC's) K&R2 is now well out of date (let along K&R1). I Have a K&R for
HISTORICAL reference but not practical use.

Languages change. This should be remembered by anyone with a "committee
draft" of ISO-C The drafts get changed and can not be considered
accurate. It is "mostly accurate" in the same way some one is "almost a
virgin" :)

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/\
/\/\/ (e-mail address removed) www.phaedsys.org \/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Is C99 C? 46
C99 to C89 translator 23
ISO C89 and ISO C99 13
C99 integer types 24
C89/C90: Returning 0 from main() 8
What's the deal with C99? 111
C99 float variants of math.h functions 6
What are C89 and C99 ? 3

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top