From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Thu, 14 Feb 2013 16:15:25 -0500 To: 9fans@9fans.net Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] why does this compile? Topicbox-Message-UUID: 183d821a-ead8-11e9-9d60-3106f5b1d025 this is rejected by most other compilers because rlogn is not initialized to a constant. the value returned is bizarre. - erik > #include > #include > > static char rlog[24]; > static char *rloge = rlog + sizeof rlog; > static char *rlogl = rlog + sizeof rlog - 1; > static char *rlogn = rloge - 1; > > void > main(int, char **) > { > print("%p %p %p %p\n", rlog, rlogl, rlogn, rloge); > exits(nil); > }