char signed or unsigned

Discussion in 'C++' started by Joe Van Dyk, Jul 26, 2006.

  1. Joe Van Dyk

    Joe Van Dyk Guest

    char s;

    Is it really implementation-defined as to whether s is an unsigned or
    signed char?

    Joe
     
    Joe Van Dyk, Jul 26, 2006
    #1
    1. Advertising

  2. Joe Van Dyk wrote:
    >> char s;
    >>
    >> Is it really implementation-defined as to whether s is an unsigned or
    >> signed char?
    >> ...

    > Apparently so. 3.9.1-1.
    > ...


    BTW, it only means that the range of 's' is that of either 'signed char' or
    'unsigned char'. But the type of 's' is still just 'char' and 'char' still
    remains an independent type, different (as an independent type) from both
    'signed char' and 'unsigned char'.

    --
    Best regards,
    Andrey Tarasevich
     
    Andrey Tarasevich, Jul 26, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    9
    Views:
    1,778
    Peter Nilsson
    Jul 26, 2004
  2. Steffen Fiksdal

    void*, char*, unsigned char*, signed char*

    Steffen Fiksdal, May 8, 2005, in forum: C Programming
    Replies:
    1
    Views:
    588
    Jack Klein
    May 9, 2005
  3. At_sea_with_C

    char vs. signed or unsigned char

    At_sea_with_C, Mar 14, 2007, in forum: C Programming
    Replies:
    4
    Views:
    756
    Malcolm McLean
    Mar 14, 2007
  4. Ioannis Vranos
    Replies:
    11
    Views:
    762
    Ioannis Vranos
    Mar 28, 2008
  5. Ioannis Vranos

    Padding bits and char, unsigned char, signed char

    Ioannis Vranos, Mar 28, 2008, in forum: C Programming
    Replies:
    6
    Views:
    614
    Ben Bacarisse
    Mar 29, 2008
Loading...

Share This Page