Are strings local?
D.JONES
dean at homxb.UUCP
Thu Aug 4 12:32:51 AEST 1988
> /* 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 at 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);
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
More information about the Comp.lang.c
mailing list