Interesting C thingy

Jason Gurtz jason at
Mon Aug 9 10:28:51 PDT 2004

On 8/9/2004 12:56, Miguel Bazdresch wrote:

> printf("%c\n",9[str]); only prints the newline, i expected it to
> segfault :)

Hmm, well maybe, maybe not.  Clearly it's beyond the bounds of the array
 which is leagl.  But you don't know what you're going to get.  Maybe
you were lucky and got \0?




More information about the lfs-chat mailing list