Thread: Binary numbers in C

  1. #1
    Registered User
    Join Date
    Aug 2009

    Binary numbers in C

    Hi all

    I've been reading about the different ways of representing binary numbers in general, i.e. the one's and two's complement.

    Which one does C use?

  2. #2
    Registered User
    Join Date
    Sep 2006
    That is an hardware and OS issue, not a C issue, per se.

    The C compiler for that hardware/OS, will have to take this into account, in order to work properly. If your program involves working with bits/bytes/nibbles, etc., the programmer would have to know about the this feature.

    Otherwise, it should make no difference.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. checking if binary numbers are palindromic
    By Beatz in forum C Programming
    Replies: 3
    Last Post: 01-24-2008, 01:49 PM
  2. something about binary numbers in c
    By louis_mine in forum C Programming
    Replies: 1
    Last Post: 02-09-2005, 10:22 PM
  3. Tutorial review
    By Prelude in forum A Brief History of
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM
  4. Binary representation of numbers...
    By roc in forum C++ Programming
    Replies: 2
    Last Post: 05-14-2003, 07:42 PM
  5. how to pack 8 x 4 bit binary numbers into a long int?
    By n00bcodezor in forum C Programming
    Replies: 11
    Last Post: 11-19-2001, 05:46 PM