Binary numbers in C

This is a discussion on Binary numbers in C within the C Programming forums, part of the General Programming Boards category; Hi all I've been reading about the different ways of representing binary numbers in general, i.e. the one's and two's ...

  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    140

    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
    Posts
    8,868
    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 Cprogramming.com
    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, 08: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

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