Re: string operation??
- From: Random832 <random@xxxxxxxxxxxxx>
- Date: 28 Nov 2006 02:24:44 GMT
2006-11-27 <1164663430.642718.99780@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Spiros Bousbouras wrote:
Random832 wrote:[snip]
Is CHAR_MAX allowed to be a value other than a power of two minus one?
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.
.
- References:
- string operation??
- From: sethukr@xxxxxxxxx
- Re: string operation??
- From: mark_bluemel
- Re: string operation??
- From: Christopher Benson-Manica
- Re: string operation??
- From: Random832
- Re: string operation??
- From: Spiros Bousbouras
- string operation??
- Prev by Date: Re: Please Help ----------Free Downloadable Ebooks for C & C++ Language needed
- Next by Date: removing newline character from the buffer read by fgets
- Previous by thread: Re: string operation??
- Next by thread: Re: string operation??
- Index(es):