Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Oct 1995 09:21:24 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        pst@shockwave.com, wollman@lcs.mit.edu
Cc:        Kai.Vorma@hut.fi, ache@astral.msk.su, current@freebsd.org, terry@lambert.org
Subject:   Re: tail dumps core
Message-ID:  <199510102321.JAA10262@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>  	memset(&i, 0, sizeof i);
>  	if (i == 0) {
>  		printf("your machine is normal\n");
>  	} else {
>  		printf("your machine is really weird, but allowed by the"
>  		       " C standard\n");
>  	}

>How could this possibly be allowed by the C standard?  I'm utterly
>confused.

Anything not disallowed by the standard is allowed.  There doesn't
seem to be anything to stop a perverse implementation from storing
(e.g.) 0 as 1 and 1 as 0.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510102321.JAA10262>