I have a pretty rookie question for you guys.
I want to write a bit check. There I want to write a Boolean check if a two bit pattern is identical.
Unfortunately I did not understand the bit check completely.
public bool BitPatternCheck(int number, int operand)
{
if (operand >> number != 0)
{
false;
}
}
Now in the Main method i would like to pass 2 numbers and check if all bits in operand are also present in number.