Path: utzoo!utgpu!news-server.csri.toronto.edu!torsqnt!lethe!yunexus!shields From: shields@yunexus.YorkU.CA (Paul Shields) Newsgroups: comp.lang.c Subject: Re: NULL question not in FAQ Message-ID: <22155@yunexus.YorkU.CA> Date: 27 Mar 91 09:37:39 GMT References: <1991Mar26.235643.4498@ux1.cso.uiuc.edu> Organization: York U. Computing Services Lines: 16 phil@ux1.cso.uiuc.edu (Phil Howard KA9WGN) writes: >Given that the compiler is supposed to translate the constant "0" to the >appropriate value for a NULL pointer on the machine type, how does one >get a pointer value whose representation happens to be all zeroes, but >is a non-NULL pointer? >Are all of these equivalent or are any differnt? [.. examples deleted..] I think all the original examples are equivalent. But if the stored value for a NULL pointer is something other than all 0 bits, then erhaps this will do it... char *x; memset( &x, 0, sizeof(char *));