This is C Program for define the Bitwise operator. Binary system operator known as bitwise operator like Left shift or right shift operator. The operands value is moved left or right by the number of bits specified by the operand position right or left. To define this condition user declares the variables c1, c2, c3. Here user define char type variables and define the value as static mode manually. User put the condition to define bitwise operator c3 = c1 & c2. And display output as result on the screen.
This is C program that asks user to define bitwise operator.
- Declare variables.
- Using define method.
- Display output on the screen as result.
Here is C source code for Define the Bitwise operator. Output of this program shown below.
int c1 = 4,c2 = 6,c3 = 0;
c3 = c1 & c2;
printf("\n Bitwise AND i.e. c1 & c2 = %d",c3);