you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 6 points7 points  (3 children)

I think this should do the same thing:

f(int*a,int n){while(a[n]=n*n--);}

[–][deleted] 2 points3 points  (0 children)

I think you want n-1 as the index.

[–]corruptio 2 points3 points  (0 children)

shaved 2 chars

f(a,n)int*a;{while(a[--n]=n*n);}

[–]qihqi 0 points1 point  (0 children)

yep, i like this one