If the input is in an int variable and the binary sequence is held in an int variable, I don't understand what the code is supposed to do. There wouldn't be any logic needed, just an assignment...
Type: Posts; User: Norm
If the input is in an int variable and the binary sequence is held in an int variable, I don't understand what the code is supposed to do. There wouldn't be any logic needed, just an assignment...
What type of variable is that "binary sequence" held in? Do you need to drop the leading 0s?
An int variable holds 32 bits that can be shifted bit by bit. any bit of the int can be tested by...