Re: So what Standard are we working off?
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Fri, 30 Jun 2006 20:47:37 GMT
Joe Wright <joewwright@xxxxxxxxxxx> writes:
[...]
Is there a case where a correct C90 program cannot be successfully
compiled by a C99 compiler? Actually this is not a compiler question
but a language one. Is there anything in C90 that C99 must reject or
handle differently?
Certainly.
#include <stdio.h>
main(void) /* C99 removes implicit int */
{
int restrict = 5; /* restrict and inline are new keywords */
int inline = 10 //*
/* subtle effect of "//" comments */
restrict;
printf("inline = %d\n", inline);
return; /* C99 requires return <expr> for a non-void function */
}
--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <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.
.
- References:
- So what Standard are we working off?
- From: Frederick Gotham
- Re: So what Standard are we working off?
- From: Keith Thompson
- Re: So what Standard are we working off?
- From: Frederick Gotham
- Re: So what Standard are we working off?
- From: Peter Nilsson
- Re: So what Standard are we working off?
- From: Ben Pfaff
- Re: So what Standard are we working off?
- From: Keith Thompson
- Re: So what Standard are we working off?
- From: Joe Wright
- So what Standard are we working off?
- Prev by Date: Re: OT: English dialect [Was: Okay to move an "object" will-nilly?]
- Next by Date: Re: void vs void* (philosophical question)
- Previous by thread: Re: So what Standard are we working off?
- Next by thread: Re: So what Standard are we working off?
- Index(es):
Relevant Pages
|