Jeff Wilson wrote:
From: Zan Lynx <[email protected]>
for(i=0; i<x; i++) { print i } for unknown x may never halt, but:
I think you are missing a semicolon there.
But isn't there a limit to the maximum value that can be stored in x for
a particular implementation with finite resources, where it would halt
regardless?
Sure, but if you change it to:
int i, x;
for(i=0; i<x; i+=2) { printf("%d\n", i ); }
it will in fact never terminate if x = MAXINT and MAXINT is an odd number.
_______________________________________________
GurpsNet-L mailing list <[email protected]>
http://mail.sjgames.com/mailman/listinfo/gurpsnet-l