473,626 Members | 3,285 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What are C89 and C99 ?

I have seen so many threads discussions refered to C89 and C99 every
so often, but I've been confused about what are the differences
between those specifications ? and what are the C89-conforming C
compilers, and what are the C99-conforming ones ? (let's say, Visual
C, Borland C, GNU C, Watcom C, LCC,etc) Can somebody point that out
for me, or provide me some pages to visit on the net about that topic
? thanx.
Nov 14 '05 #1
3 4415
In <ad************ **************@ posting.google. com> ru****@sohu.com (sugaray) writes:
I have seen so many threads discussions refered to C89 and C99 every
so often, but I've been confused about what are the differences
between those specifications ?
You can find a reasonable summary at the beginning of N869, the freely
downloadable last public draft of C99. Of course, this assumes
familiarity with C89, as described by K&R2 and most other modern C
tutorial books.
and what are the C89-conforming C
compilers, and what are the C99-conforming ones ? (let's say, Visual
C, Borland C, GNU C, Watcom C, LCC,etc)
None of the popular implementations is C99 conforming, but some are
trying harder than the others. All of them are C89 conforming and may
support certain C99 features when invoked in extended mode. From your
list, gcc probably comes closest when invoked in C99 mode (which is not
really C99 mode, but as close to C99 as the compiler can currently get).
Can somebody point that out
for me, or provide me some pages to visit on the net about that topic


If you're really interested in C99, you have to read N869 or even
obtain an electronic copy of the final version from ANSI, for $18.

A more readable (but possibly less accurate) alternative should be
the fifth edition of Harbison & Steele, which claims to cover C99.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #2
in comp.lang.c i read:
I have seen so many threads discussions refered to C89 and C99 every
so often, but I've been confused about what are the differences
between those specifications ?
c89 is short-hand for the (original) c standard as adopted by ansi in 1989
(which was adopted by the iso in 1990 so sometimes you'll see c90), while
c99 stands for the (revised) standard which was adopted by the iso in 1999.
there are numerous differences between c89 and c99, such as increased
translation minimum limits (longer variables must be supported), variable-
length arrays, complex and imaginary number support -- the list is
substantial, and is in the forward of the c99 standard.
and what are the C89-conforming C
compilers, and what are the C99-conforming ones ? (let's say, Visual
C, Borland C, GNU C, Watcom C, LCC,etc)


the primary source of that information are the claims made by the authors
of those implementations . some are widely known to conform to one or
another of the standards, so often you can obtain a response to this sort
of query, but it would not be authoritative. most conform to c89 but have
extensions some of which conform to the c99 semantics. if you must be
certain then only conformance testing would be sufficient, and naturally it
would be limited to the specifics tested (options, library versions, etc.).

--
a signature
Nov 14 '05 #3
ru****@sohu.com (sugaray) wrote in message news:<ad******* *************** ****@posting.go ogle.com>...
I have seen so many threads discussions refered to C89 and C99 every
so often, but I've been confused about what are the differences
between those specifications ? and what are the C89-conforming C
compilers, and what are the C99-conforming ones ? (let's say, Visual
C, Borland C, GNU C, Watcom C, LCC,etc) Can somebody point that out
for me, or provide me some pages to visit on the net about that topic
? thanx.


I hope this will help you.
<http://en2.wikipedia.o rg/wiki/C_programming_l anguage>

--
"I don't believe in the God who doesn't give me food, but shows me
heaven!" -- Swami Vivekanandha
http://guideme.itgo.com/atozofc/ - "A to Z of C" Project
Email: rrjanbiah-at-Y!com
Nov 14 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3073
by: thecrow | last post by:
Alright, what the hell is going on here? In the following code, I expect the printed result to be: DEBUG: frank's last name is burns. Instead, what I get is: DEBUG: frank's last name is burns. Here is the code: $frank = "burns";
220
18990
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have any preconceived ideas about it. I have noticed, however, that every programmer I talk to who's aware of Python is also talking about Ruby. So it seems that Ruby has the potential to compete with and displace Python. I'm curious on what basis it...
699
33835
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro capabilities, unfortunately. I'd like to know if it may be possible to add a powerful macro system to Python, while keeping its amazing syntax, and if it could be possible to add Pythonistic syntax to Lisp or Scheme, while keeping all of the...
92
6434
by: Reed L. O'Brien | last post by:
I see rotor was removed for 2.4 and the docs say use an AES module provided separately... Is there a standard module that works alike or an AES module that works alike but with better encryption? cheers, reed
137
7051
by: Philippe C. Martin | last post by:
I apologize in advance for launching this post but I might get enlightment somehow (PS: I am _very_ agnostic ;-). - 1) I do not consider my intelligence/education above average - 2) I am very pragmatic - 3) I usually move forward when I get the gut feeling I am correct - 4) Most likely because of 1), I usually do not manage to fully explain 3) when it comes true. - 5) I have developed for many years (>18) in many different environments,...
12
11143
by: Dario | last post by:
The following simple program behaves differently in Windows and Linux . #include <stdexcept> #include <iostream> #include <string> using namespace std; class LogicError : public logic_error { public: string desc;
125
14690
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from software giant such as Microsoft SQL Server, Oracle, and Sybase? Is PostgreSQL reliable enough to be used for high-end commercial application? Thanks
47
9122
by: Neal | last post by:
Patrick Griffiths weighs in on the CSS vs table layout debate in his blog entry "Tables my ass" - http://www.htmldog.com/ptg/archives/000049.php . A quite good article.
121
10016
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode support IDEs are DreamWeaver 8 and Zend PHP Studio. DreamWeaver provides full support for Unicode. However, DreamWeaver is a web editor rather than a PHP IDE. It only supports basic IntelliSense (or code completion) and doesn't have anything...
8
3143
by: Midnight Java Junkie | last post by:
Dear Colleagues: I feel that the dumbest questions are those that are never asked. I have been given the opportunity to get into .NET. Our organization has a subscription with Microsoft that basically entitled to us to just about every .Net development tool you can imagine. I cant even begin to mention them. To begin with, my background is not that of a programmer, but a systems engineer and the closest I have come to "programming"...
0
8196
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8701
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8637
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2623
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1507
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.