This means the result is 0001110 after ORing, which is 28 in decimal. Thus, the expression numb1
| numb2 returns a decimal value of 28.
Also note that the bitwise OR operator is generally used to set a particular bit in a number
ON. Thus, if you want to set the fifth bit of a number ON then you will OR this number with the
Do'stlaringiz bilan baham: