Professional Documents
Culture Documents
Focp Final Lab: Online C Complier Code
Focp Final Lab: Online C Complier Code
1. Aim of the practical: WAP which implements the working of all Bitwise operators.
2. TOOL USED:
ONLINE C COMPLIER
4. CODE:
//krishna kumar 21bcs7071
// qestion :WAP which implements the working of all Bitwise operators.
#include <stdio.h>
int main()
{
unsigned char a = 10, b = 11;
int d = 0;
d = a << 1;
printf("The result of Bitwise Left Shift is %d \n", d );
d = a >> 1;
printf("The result of Bitwise Right Shift is %d \n" , d );
d = a & b;
printf("The result of Bitwise AND is %d \n", d );
d = a | b;
FOCP FINAL LAB
OUTPUT:
FOCP FINAL LAB
5. EXPLANATION:
6. ERROR ENCOUNTERED:
NIL
FOCP FINAL LAB
THANK YOU