D
Dr Malcolm McLean
Consider if we/you know that "using sub-int data types" does not
increase code size and execution time, what are the drawbacks of using
unsigned char for numbers in the range 0 to 255?- Hide quoted text -
consider this
void flagduplicates(char **str, bool *flags, unsigned char N)
{
unsigned char i;
for(i=0; i <N-1;i++)
if(!strcmp(str, str[i+1]))
flags = true;
else
flags = false;
flags = false;
}
or this
unsigned char ch;
while( (ch = fgetc(fp)) != EOF )
/* do something */;
or this
unsigned char exponent;
double mantissa;
mantissa = frexp(x, &exponent);