| Bitwise Operators in C, Binary OR Operator copies a bit if it exists in either operand.
C Programming Language Operators and Enums in C Language (Article) Operators and Enums in C Language (Program)
5828Program:
#include"stdio.h" void main() { unsigned int a = 60; /* 60 = 0011 1100 */ unsigned int b = 13; /* 13 = 0000 1101 */ int c = 0; c = a | b; printf(" Value of c is %d\n", c ); }
Output:
Value of c is 61 Press any key to continue . . .
This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.