473,386 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Questions about C90 vs C99

Hi!

I am trying to understand weather to use c89/c90 or c99 and have come
up with some questions that I would be interested in hearing your
thoughts about:

What is the advantage of writing a program according to c90? Dito for
c99?

What is the disadvantage of asking someone to write a program
according to c90 instead of c99? Dito for "c99 instead of c90"?

What do you recommend when giving programming assignmnts/jobs: "write
the program according to c90" or "write the program according c99"?

As far as I understand the best (best as being most portable) thing is
to write C-programs that comply with c89, c90 and c99.

How are C-compilers "officially certified" to comply with c89, c90 and
c99?

BRs!
Dec 10 '07 #1
14 3236
dspfun wrote:

What is the advantage of writing a program according to c90? Dito for
c99?
I write C programs in the common subset of the two.


Brian
Dec 10 '07 #2
On Mon, 10 Dec 2007 21:55:07 +0000, Default User wrote:
dspfun wrote:

>What is the advantage of writing a program according to c90? Dito for
c99?

I write C programs in the common subset of the two.
Is C90 not a subset of C99?

Dec 10 '07 #3
"K. Jennings" <kj*******@resurgence.netwrote in
news:pa*********************@resurgence.net:

Is C90 not a subset of C99?

Not entirely, C99 got rid of implicit int and also implicit function
declarations for instance, and that's because they were anti-features in
the first place.

--
Tomás Ó hÉilidhe
Dec 10 '07 #4
Tomas S hIilidhe wrote:
"K. Jennings" <kj*******@resurgence.netwrote in
news:pa*********************@resurgence.net:

Is C90 not a subset of C99?


Not entirely, C99 got rid of implicit int and also implicit function
declarations for instance, and that's because they were anti-features
in the first place.
Yep. Most of what you "lose" weren't good practices anyway.


Brian
Dec 10 '07 #5
dspfun wrote:
What is the advantage of writing a program according to c90? Dito for
c99?
C90 is currently supported on a wider range of platforms.
C99 has some new features which you may find convenient.
What is the disadvantage of asking someone to write a program
according to c90 instead of c99? Dito for "c99 instead of c90"?
Hmm, sounds like a homework question...
What do you recommend when giving programming assignmnts/jobs: "write
the program according to c90" or "write the program according c99"?
"Write according to the capabilities of the compiler you have available
for the platforms you're targetting."
and
"Try to keep platform-specfific code separate from Standard C, but don't
get obsessive about it."
How are C-compilers "officially certified" to comply with c89, c90 and
c99?
Self-certification as far as I know.
Dec 10 '07 #6
ja*********@verizon.net wrote:
dspfun wrote:
[...]
>How are C-compilers "officially certified" to comply with c89, c90 and
c99?

There's no official certification process. A number of private
companies provide test suites which can check for non-compliance.
Well, we do have the UNIX 03 certification, which comes with a validated
C99 compiler.

"ISO-C the requested output files from a valid release of either the
Perennial or Plum Hall test suites."
- http://www.opengroup.org/openbrand/t.../u03brand.html

IIRC, from the last time I checked, there was some 3-4 validated C99
compilers.

--
Tor <bw****@wvtqvm.vw | tr i-za-h a-z>
Dec 11 '07 #7
On 11 Dec, 00:10, jameskuy...@verizon.net wrote:
dspfun wrote:
How are C-compilers "officially certified" to comply with c89, c90 and
c99?

There's no official certification process.
Is there an official certification process for C89 or C90?
Dec 11 '07 #8
"Tomás Ó hÉilidhe" <to*@lavabit.comwrites:
"K. Jennings" <kj*******@resurgence.netwrote in
news:pa*********************@resurgence.net:

> Is C90 not a subset of C99?


Not entirely, C99 got rid of implicit int and also implicit function
declarations for instance, and that's because they were anti-features in
the first place.
And of course C99 adds a few new keywords, which are no longer
available for use as ordinary identifiers (inline, restrict).

--
Keith Thompson (The_Other_Keith) <ks***@mib.org>
Looking for software development work in the San Diego area.
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Dec 11 '07 #9
In article <87************@kvetch.smov.org>,
Keith Thompson <ks***@mib.orgwrote:
>And of course C99 adds a few new keywords, which are no longer
available for use as ordinary identifiers (inline, restrict).
One of which (inline) I actually ran into the other day. The error
message wasn't very enlightening.

-- Richard
--
:wq
Dec 11 '07 #10
dspfun wrote:
>On 11 Dec, 00:10, jameskuy...@verizon.net wrote:
>>dspfun wrote:
>>How are C-compilers "officially certified" to comply with c89, c90 and
c99?
There's no official certification process.

Is there an official certification process for C89 or C90?
For the standards themselves? I presume the answer is yes, though I
don't know the details. ISO has standards that prescribe how ISO
standards are supposed to be written, and I would expect that ISO is
sufficiently bureaucratic that it actually enforces those standards. ISO
has no external enforcement powers, but the standards that govern other
ISO standards are a purely internal affair.
Dec 11 '07 #11
On 11 Dec, 12:19, James Kuyper <jameskuy...@verizon.netwrote:
dspfun wrote:
On 11 Dec, 00:10, jameskuy...@verizon.net wrote:
dspfun wrote:
>How are C-compilers "officially certified" to comply with c89, c90 and
c99?
There's no official certification process.
Is there an official certification process for C89 or C90?

For the standards themselves? I presume the answer is yes, though I
don't know the details. ISO has standards that prescribe how ISO
standards are supposed to be written, and I would expect that ISO is
sufficiently bureaucratic that it actually enforces those standards. ISO
has no external enforcement powers, but the standards that govern other
ISO standards are a purely internal affair.
Ok, thanks! What I meant was if there is/was an official certification
process for C89/C90 compilers.
Dec 11 '07 #12
dspfun wrote:
On 11 Dec, 12:19, James Kuyper <jameskuy...@verizon.netwrote:
dspfun wrote:
>On 11 Dec, 00:10, jameskuy...@verizon.net wrote:
>>dspfun wrote:
>>How are C-compilers "officially certified" to comply with c89, c90 and
>>c99?
>There's no official certification process.
Is there an official certification process for C89 or C90?
....
Ok, thanks! What I meant was if there is/was an official certification
process for C89/C90 compilers.
??? - I already answered that question, and you've quoted my answer
above, just before repeating the question. That's why I assumed that
you had to be asking a different question.
Dec 11 '07 #13
On 11 Dec, 18:45, jameskuy...@verizon.net wrote:
dspfun wrote:
On 11 Dec, 12:19, James Kuyper <jameskuy...@verizon.netwrote:
dspfun wrote:
On 11 Dec, 00:10, jameskuy...@verizon.net wrote:
>dspfun wrote:
>How are C-compilers "officially certified" to comply with c89, c90 and
>c99?
There's no official certification process.
Is there an official certification process for C89 or C90?
...
Ok, thanks! What I meant was if there is/was an official certification
process for C89/C90 compilers.

??? - I already answered that question, and you've quoted my answer
above, just before repeating the question. That's why I assumed that
you had to be asking a different question.
Ok, I wasn't sure if you meant your answer was valid for all (C89, C90
and C99). Now I know, thanks!
Dec 11 '07 #14
On 10 Dec, 21:45, dspfun <dsp...@hotmail.comwrote:
I am trying to understand weather to use c89/c90 or c99 and have come
up with some questions that I would be interested in hearing your
thoughts about:

What is the advantage of writing a program according to c90?
portability
Dito for c99?
shiney new features

What is the disadvantage of asking someone to write a program
according to c90 instead of c99? Dito for "c99 instead of c90"?

What do you recommend when giving programming assignmnts/jobs: "write
the program according to c90" or "write the program according c99"?

As far as I understand the best (best as being most portable) thing is
to write C-programs that comply with c89, c90 and c99.
I encourage people to use C90. If some feature of C99 was *really*
needed (rather than a convenience) (eg. complex numbers) then I'd
recomend C99 (or maybe C++...)

<snip>
--
Nick Keighley

Q: How many surrealists does it take to change a light bulb?
A: Two. One to hold the giraffe and the other to fill the bathtub
with
brightly colored machine tools.
Dec 12 '07 #15

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

Similar topics

0
by: softwareengineer2006 | last post by:
All Interview Questions And Answers 10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP) I have listed over 10000 interview questions asked in interview/placement test papers for...
0
by: connectrajesh | last post by:
INTERVIEWINFO.NET http://www.interviewinfo.net FREE WEB SITE AND SERVICE FOR JOB SEEKERS /FRESH GRADUATES NO ADVERTISEMENT
2
by: freepdfforjobs | last post by:
Full eBook with 4000 C#, JAVA,.NET and SQL Server Interview questions http://www.questpond.com/SampleInterviewQuestionBook.zip Download the JAVA , .NET and SQL Server interview sheet and rate...
4
by: Drew | last post by:
I posted this to the asp.db group, but it doesn't look like there is much activity on there, also I noticed that there are a bunch of posts on here pertaining to database and asp. Sorry for...
8
by: Krypto | last post by:
Hi, I have used Python for a couple of projects last year and I found it extremely useful. I could write two middle size projects in 2-3 months (part time). Right now I am a bit rusty and trying...
0
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
1
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
0
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
0
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions...
0
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...

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.