Mail Archives: djgpp/1998/04/06/03:53:11
> > unsigned char index = 0;
> > unsigned char array[256];
> > for (index = 0; index < 256; index++)
> > array[index] = index;
> 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.
Yes, It's well
>
> int index;
>
> for (index = 0; index < 256; index++)
> ...
unsigned char index = 0;
unsigned char array[256];
for (index = 0; index <= 255; index++)
array[index] = index;
It's very well.
Miguel Murillo
- Raw text -