--- In [email protected], "David Hamill" <[EMAIL PROTECTED]> wrote: > > John wrote: > > You haven't initialised s0, so s1 could be pointing > > anywhere. > > But my money would be on it having the value zero. I.e. an > uninitialised pointer is a null pointer. I don't know if > this is in the standard
It isn't, and as C compilers generally aim to generate 'tight' code, they don't do anything that they don't have to. So the value of the pointer will be whatever was in memory before, which might be 0, but it very much depends on your compiler/OS/what happened a bit earlier etc.
