Path: utzoo!utgpu!water!watmath!clyde!att!whuts!homxb!dean From: dean@homxb.UUCP (D.JONES) Newsgroups: comp.lang.c Subject: Re: Are strings local? Summary: Obfuscated Keywords: Help! Message-ID: <1996@homxb.UUCP> Date: 4 Aug 88 02:32:51 GMT References: <644@m10ux.UUCP> <12791@mimsy.UUCP> <652@m10ux.UUCP> Organization: AT&T Bell Laboratories, Holmdel Lines: 33 > /* or, if you'd like to be even more obscure... */ > (p= "def")[2]= 'x'; > printf("%s\n", p); /* this will print "abx\n" */ > > +------ > | Duke Robillard > | AT&T Bell Labs {backbone!}att!m10ux!rgr > | Murray Hill, NJ rgr@m10ux.ATT.COM This must be how the "International Obfuscated C Code Contest" got started. Want to see something even more obscure: 2[p="def"] = 'x'; printf("%s\n", p); Sorry about the waste of bandwidth, @:7) /*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/ signature() { Dean_S_Jones("AT&T Bell Labs","HO 1K-426","{AT&T Gateways}!homxb!dean"); if( MY_OPINIONS != (AT & T_OPINIONS)) exit(0); } /*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/