Article View: comp.std.c
Article #6195Standard C?
From: Peter Gordon
Date: Tue, 06 Feb 1990 23:32
Date: Tue, 06 Feb 1990 23:32
19 lines
635 bytes
635 bytes
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.
Technical Details
Message-ID:
<26250@qfagus.OZ>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!munnari.oz.au!cluster!metro!bunyip!moondance!uqcspe!qfagus!gordonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!munnari.oz.au!cluster!metro!bunyip!moondance!uqcspe!qfagus!gordon From: gordon@qfagus.OZ (Peter Gordon) Newsgroups: comp.std.c Subject: Standard C? Keywords: ANSI/UNIX C Message-ID: <26250@qfagus.OZ> Date: 6 Feb 90 23:32:47 GMT Organization: Department of Forestry, Brisbane, Australia Lines: 19