Standard C?

Peter Gordon gordon at qfagus.OZ
Wed Feb 7 10:32:47 AEST 1990


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.



More information about the Comp.std.c mailing list