Ex. No. Bit Wise Operator : 18Cs1002 Programming For Problem Solving Lab
Ex. No. Bit Wise Operator : 18Cs1002 Programming For Problem Solving Lab
>
Ex. No.
Bit wise operator <Title>
<Date of Exercise>
Aim
<Aim here>
To write a c program for bitwise operator and , or,not, Xor and shifting
Algorithm
<Algorithm here>
Flowchart
start
a &b
Calculate C=a&b
Program
<Program here> stop
#include <stdio.h>
main() {
int c = 0;
c = a | b; /* 61 = 0011 1101 */
c = a ^ b; /* 49 = 0011 0001 */
Output
Result
Thus the bitwise operators c programming is verified successfully.