#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
void app_main(){
// declaring unsigned 8 bit integer 00000000
uint8_t a,b,c,y;
a = 200;
b = 56;
c = 16;
y = 0;
y = ~a;
printf(" The one's complement (NOT) of 200 is %i \n", y);
y = a & b;
printf(" Bitwise ANDING of 200 and 56 gives %i \n", y);
y = a | b;
printf(" Bitwise ORING of 200 and 56 gives %i \n", y);
y = a ^ b;
printf(" Bitwise XORING of 200 and 56 gives %i \n", y);
y = a << 3;
printf(" Bitwise left shift by 3 of the value 200 gives %i \n", y);
y = a >> 3;
printf(" Bitwise right shift by 3 of the value 200 gives %i \n", y);
printf(" Multiplying the value 16 by 8 (2^3) gives %i. Bit shifting the value 16 by 3 bits to the left also gives %i \n", c*8, c<<3);
printf(" Dividing the value 16 by 8 (2^3) gives %i. Bit shifting the value 16 by 3 bits to the right also gives %i \n", c/8, c>>3);
//shifting and using xor
b = b <<4;
printf("shifting the variable of b by 4 which is %i\n", b);
a = a >> 5;
printf("shifting the variable of a by 5 which is %i\n", a);
y = b ^ c;
printf("shifting the variable of b and c by which is %i\n", y);
}