Date: Tue, 2 May 95 16:10:30 EDT From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock) To: DJGPP AT SUN DOT SOE DOT CLARKSON DOT EDU Subject: Re: Bad bug with for(-;-;-) and an enum name Reply-To: babcock AT cfa DOT harvard DOT edu > #include > enum{q=1,imax=256}; > main(){double x,y; int i,j,k,l,im=imax; > printf("A: "); for(i=-im ;i printf("B: "); for(i=-imax;i > When this Gnu C++ program runs, loop A prints consecutive numbers on screen > as expected, but loop B prints <>. First guess would be that imax is interpreted as an unsigned int, messing up the i