Mail Archives: djgpp/1998/04/06/07:42:04
> Miguel Murillo wrote:
>
> > > Iterate with something other than a char. An unsigned char can
> > > hold values between 0 and 255 inclusive, so these conditions will
> > > _always_ be satisfied.
Miguel, you should always attribute the quotes to the proper poster. in
this case, i think it was Erik Max Francis who made the comment above.
> <snip>
> > unsigned char index = 0;
> > unsigned char array[256];
> > for (index = 0; index <= 255; index++)
> > array[index] = index;
> >
> > It's very well.
no, it ain't very well. can you spell INFINITE LOOP???
----------------------------------------------------------------------
A. Sinan Unur
Department of Policy Analysis and Management, College of Human Ecology,
Cornell University, Ithaca, NY 14853, USA
mailto:sinan DOT unur AT cornell DOT edu
http://www.people.cornell.edu/pages/asu1/
- Raw text -