Re: Doubt



Richard Heathfield wrote:

santosh said:

Anarki wrote:

<snip>

2.I haven't included stdio.h yet the printf compiles.The compiler
doesn't complain about the requirement of function prototype, why?

If you had invoked your compiler in conforming mode then it would
have.

Chapter and verse for C90, please. (I accept that your claim is
correct for C99.)

<snip>

Um, does 0.0 p0 qualify? :-)

You're right. The rules of C90 do not require a diagnostic. This is what
comes of relying more on gcc than on the Standard document itself.

.



Relevant Pages

  • Re: The C Programming Language: Third Edition
    ... everyday use, I favour gcc. ... doesn't have a C99 conforming mode - and indeed I am unaware of any ... in C90 mode this compiler doesn't conform to ...
    (comp.lang.c)
  • Re: Doubt
    ... doesn't complain about the requirement of function prototype, ... If you had invoked your compiler in conforming mode then it would have. ... Chapter and verse for C90, ...
    (comp.lang.c)
  • Re: Why oh why does this NOT give a compile error?
    ... I guess a lot depends on if the compiler will still accept K&R style code ... A conforming implementation of C99 is required to accept functions without ... that compilers often retained them because they were valid in C90). ... be viewed as, effectively, different languages. ...
    (comp.lang.c)
  • Re: Problem with a linked list
    ... If the compiler recognises // comments it will generate ... > code that produces output that is not valid for C90. ... I think diagnostics and behavior are both significant. ... A conforming C90 compiler must issue a diagnostic, ...
    (comp.lang.c)
  • Re: C Variables Length
    ... identifiers and 6 for external identifiers in C90, ... I'm using a C90 compiler. ... If the behaviour is implementation-defined then the implenation must document what it does, which may include reformatting hard drives. ... It happens to point to the string "format C:" - it's a wild pointer, after all, and user has entered that text about shop promotion formats. ...
    (comp.lang.c)