I have several equations that will return a binary value for each of the three bits in my number.
I program this in C, which is a new language for me.
So let my equations come back Y0 = 1, Y1 = 0and Y2 = 1( 101); I want to keep this value as 5.
Is this possible in C if these values are returned by different equations?
I know how to do this by multiplying, but I'm looking for a function or something that I think is already built into C.
Zebs source
share