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?
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 ...
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?
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.