Computer Science, asked by snehasindhe2001, 9 months ago

10. To set all bits of an operand to 1, it could be
ORed with____​

Answers

Answered by bhaveshpandya7893
4

write a function in assembly (but lets assume language agnostic for the question).

How can I use bitwise operators to set all bits of a passed in number to 1?

I know that I can use the bitwise "or" with a mask with the bits I wish to set, but I don't know how to construct a mask based off some a binary number of N size.

mark as branliest answer

Similar questions