[comp.std.c] Standard C?

gordon@qfagus.OZ (Peter Gordon) (02/07/90)

I came across the following code, which compiles on three C compilers
which I have tried.
main()
{
	int err = 0;
	err = !0;
	printf("err = %d\n", err);
}

err is equal to 1.

Is this code portable?
Where is this syntax documented?


Peter Gordon
Queensland Forest Service
Australia.