7.Write a program in C to perform bitwise OR on two numbers using the '|' operator.
Bitwise OR Operator (|):
The bitwise OR operator is a binary operator that logically ORs each bit of two operands that are integers. When comparing the operands, it compares each matching bit, returning 1 if either bit is 1, otherwise returning 0. A single vertical bar or pipe symbol represents it, i.e., (|).
In C Programming , the bitwise OR operator is represented by the symbol |.
Let us explore the bitwise OR operation on two integers number 9 and 5.
9 = 1001 ( Binary)
5 = 0101 ( Binary)
Bitwise OR | Operation of 9 and 5
1001
| 0101
________
1101 = 13 (In decimal)