Interpretation of i=-1

T. William Wells bill at proxftl.UUCP
Sat Aug 20 18:33:03 AEST 1988


In article <1124 at atari.UUCP> apratt at atari.UUCP (Allan Pratt) writes:
: I wonder about this fragment:
:
: main()
: {
:       int i;
:
:       i=-1;
: }

: What does ANSI say about this? (Sorry, I don't have access to the draft;
: I'm not that involved, I'm afraid.)

The compiler might still deliver a warning, as there is nothing
in the standard that prohibits it from making comments on the
program, but it *must* assign -1 to i or it is not conforming.



More information about the Comp.std.c mailing list