On 5/19/2011 12:35 PM, crea wrote:
> "Alf P. Steinbach /Usenet"<alf.p.steinbach+> wrote in
> message news:ir3qlq$a84$...
>> * crea, on 19.05.2011 21:13:
>>> I am just programming this kind of thing, and was wondering I according
>>> to
>>> c++ language it is always guaranteed that
>>> '5'-'0' = 5. Character calculations. Because character should be in order
>>> isnt it? Is it guaranteed that they are in order and the difference is 1?
>>
>> Yes.
>>
>> But that does not hold for letters (which are discontiguous in EBCDIC,
>> which the C++ standard "must" support).
>>
>
> ok, good to know also the letter-thing.
>
>
He's wrong actually. It's a really good bet, but by no means guaranteed.
--
http://crazycpp.wordpress.com