Bitwise Operators
1. Bitwise AND (&)
&)#include <stdio.h>
int main() {
int original = 14; // Binary: 1110
// Applying a mask to keep only the first and third bits
int result = original & 5; // Binary: 0101
// Display the result
printf("Result after AND operation: %d\n", result);
// Result is 4 (binary: 0100)
return 0;
}2. Bitwise OR (|)
|)3. Bitwise XOR (^)
^)4. Bitwise NOT (~)
~)5. Left Shift (<<)
<<)6. Right Shift (>>)
>>)