Re: Pass by address

new topic     » goto parent     » topic index » view thread      » older message » newer message

Robert Craig writes:

> Then read this...
>
> #define c n*n>x?p:((m=*(b+1)),N))
> #define e (2<<6*sizeof(int))
> #define o (8<<5*sizeof(int))
> #define N ((b=t+1),x+=2,x>e?exit():o
> #define p (a-t<o?*(a++)=x:47),printf("%d ",x),N)
> main(){
> int x=3,n,m=2,*t,*a,*b=0;
> while(b?o:((*(t=b=(int*)malloc(o))=2),a=t+1,o))n=*b,n>=m?
> c:x%n?(int)b++:N);
> }
>
> What does this program do?  smile

I don't know, but it's a definite contender for the Obfuscated C/C++ Code
Contest.

It seems once a language reaches a certain point of maturity, someone comes
along and devises a competition to make code completely unreadable.  Some
Perl purists insist than unless you can place in the Obfuscated Perl
Contest, you're not a Perl coder. =)

> Regards,
>    Rob Craig
>    Rapid Deployment Software
>    http://www.RapidEuphoria.com

Regards,
Greg Phillips

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu