by Dinesh Thakur Category: C Programming (Pratical)

 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.

Problem Statement:

This is C program that asks user to define bitwise operator.

  1. Declare variables.
  2. Using define method.
  3. Display output on the screen as result.

Here is C source code for Define the Bitwise operator. Output of this program shown below.

# include<stdio.h>

void main()
    int c1 = 4,c2 = 6,c3 = 0;
    c3 = c1 & c2;
    printf("\n Bitwise AND i.e. c1 & c2 = %d",c3);

Program with Bitwise Operator

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.C.A, MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.