Given a two floating point Numbers A and B, which are command line arguments, I must create methods to do bitwise operations on them. Including And, Or, Not, xOr, floating Point addition etc…
How can I access each bit in C? I need to access the specific 1’s and 0’s. Any idea how?
Here’s an example using unions, as Keith suggests.
EDIT: changed signed ints to unsigned.