Thread: regarding 1's compliment

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    1

    regarding 1's compliment

    can any body please explain how this 1's compliment works
    for ex: if we give 3 as input the 1's compliment is -4 how is it
    possible

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. itoa, binary, negative numbers and 2's compliment
    By Nyarlathotep_ in forum C++ Programming
    Replies: 2
    Last Post: 10-19-2009, 05:32 AM
  2. hex 16's compliment
    By xddxogm3 in forum Tech Board
    Replies: 9
    Last Post: 09-13-2005, 11:29 PM
  3. Would you use an IRC server to compliment these forums?
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 03-15-2002, 04:00 AM