Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
User Journal

Spy Hunter's Journal: sig update 1

Journal by Spy Hunter
Thanks largely to Alsee, the size of the code snippet has been reduced again, to 73 characters this time (not counting the slashcode-mandated space that can be removed):

main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}

It's still a complete self-contained C program, ready for compilation.

I also tried the following (to move the first space closer to the middle to thwart slashcode's evil inserted space):

main(c,r){for(r=32;r;)printf(++c<32?c<r?" ":~c&r?" `":" #":c=!r--,"\n");}

But unfortunately, that version doesn't compile on either GCC or VS.NET. I'm not sure exactly why this version is different. To me it seems like either both should compile, or neither should. Which is it?

OK, I'm thinking this is about it. Maybe one more character can be optimized out somehow, but I can't believe there are any significant optimizations left to do here. Somebody prove me wrong.

This discussion has been archived. No new comments can be posted.

sig update

Comments Filter:

Any given program, when running, is obsolete.

Working...