Unsigned char / signed char

This is a discussion on Unsigned char / signed char within the C Programming forums, part of the General Programming Boards category; Hi all. I'm learning C99. I realize that char can be either unsigned or signed depending on the implementation. However, ...

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    126

    Unsigned char / signed char

    Hi all. I'm learning C99. I realize that char can be either unsigned or signed depending on the implementation. However, is it possible to have both unsigned and signed char within the same program on any standard-conforming implementation?

    Richard (TIA)

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    23,641
    Quote Originally Posted by Richardcavell
    However, is it possible to have both unsigned and signed char within the same program on any standard-conforming implementation?
    Yes. Use unsigned char and signed char, as you require
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 06-16-2006, 09:23 PM
  2. convert maybe maybe not..
    By pico in forum C Programming
    Replies: 7
    Last Post: 03-15-2005, 09:13 AM
  3. String sorthing, file opening and saving.
    By j0hnb in forum C Programming
    Replies: 9
    Last Post: 01-23-2003, 12:18 AM
  4. Strings are V important...
    By NANO in forum C++ Programming
    Replies: 15
    Last Post: 04-14-2002, 11:57 AM
  5. ANY BODY WILLING TO HELP ME WITH Microsoft Visual C++
    By BiG pImPiN fOoL in forum C++ Programming
    Replies: 12
    Last Post: 11-04-2001, 05:03 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21