Hacker News new | ask | show | jobs
by nburger 5793 days ago
And you could save an additional character by changing the loop test to a+b form, i.e.:

int i,x[99];for(x[98]=i=1;x+98;)i*=!++x[i++];

The other array references are l-values.

1 comments

That would need to be *(x+98), which is longer than x[98].
Ahh.. you're right, of course. What I wrote has an undefined termination condition, besides not being consistent with the original algo. Thanks.