Thread: newbie question?

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    142

    newbie question?

    what does

    signed
    and
    unsigned

    mean when dealing with variables?


    and i have searched.
    WhAtHA hell Is GoInG ON

  2. #2
    Bioport Productions
    Join Date
    Oct 2005
    Posts
    215
    signed means the data can contain a - (negative) sign.

    ex.

    | signed int = -1024 through 1024 |
    | unsigned int = 0 through 2048 |

    Unsigned is essential in working with bit's because you can use the whole data field instead of half. Other than that, the choice is up to you.
    -"What we wish, we readily believe, and what we ourselves think, we imagine others think also."
    PHP Code:
    sadf 

  3. #3
    Unregistered User
    Join Date
    Sep 2005
    Location
    Antarctica
    Posts
    341
    signed uses the highest binary bit to identify the sign

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Stupid Newbie question
    By TimL in forum C++ Programming
    Replies: 4
    Last Post: 07-22-2008, 04:43 AM
  2. C prog newbie question
    By Draginzuzu in forum C Programming
    Replies: 1
    Last Post: 02-03-2003, 06:45 PM
  3. a stupid question from a newbie
    By newcomer in forum C++ Programming
    Replies: 4
    Last Post: 01-11-2003, 04:38 PM
  4. confusion with integers (newbie question)
    By imortal in forum C Programming
    Replies: 7
    Last Post: 12-06-2002, 04:09 PM
  5. newbie class templates question
    By daysleeper in forum C++ Programming
    Replies: 2
    Last Post: 09-18-2001, 09:50 AM