Re: string operation??



2006-11-27 <1164663430.642718.99780@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Spiros Bousbouras wrote:
Random832 wrote:
Is CHAR_MAX allowed to be a value other than a power of two minus one?

[snip]

From the above I'm led to think that the maximum value
of any integer type is a power of 2 minus 1.

In that case, regarding the question which you snipped about 's'^'t'
yielding a trap representation, it's not possible, since the xor
operation is defined mathematically in such a way as that if you take
any two positive numbers less than or equal CHAR_MAX, the result will be
another positive number less than or equal to CHAR_MAX. And characters
in the basic execution character set are guaranteed to be positive.
.