Well, the non-serious answer is:
It depends on the integer representation of your computer
* 8-bit (B-1)-complement representation
-1 is represented as 1 1 1 1 1 1 1 0
* 8-bit B-complement representation
-1 is represented as 1 1 1 1 1 1 1 1
and now you can look into your ASCII-table for the
corresponding character.
The serious answer/suggestion is: Please write a CR!
Regards
Jens
Theofanis Vassiliou-Gioles schrieb:
>
> Hi all,
>
> Section C.1 states that 'int2char(integer value) return char' shall
> "return -1 if the value of the argument is a negative or grater than 127".
>
> Any idea how a char can be -1?
>
> BR,
>
> Theo
--
======================================================================
Dr. Jens Grabowski
Institute for Telematics phone: +49 451 500 3723
University of Luebeck fax: +49 451 500 3722
Ratzeburger Allee 160 eMail:
This email address is being protected from spambots. You need JavaScript enabled to view it.
D-23538 Luebeck or
This email address is being protected from spambots. You need JavaScript enabled to view it.
(Germany) WWW:
www.itm.mu-luebeck.de
======================================================================