C Bitwise Operators

Get Certified in C Programming and Take Your Skills to the Next Level

Program 1

// Bitwiseoperators  in C
// &    |    ^   ~  <<   >>
#include<stdio.h>
#include<conio.h>

int main()
{
  system("cls");
  int a;
  
  a=((5&5)|5)<<3;
  printf("%d",a);
  
  return 0;
}

/* 
 a=13>>2;
  a=5<<3; 
int a=~-9;
  int a=5&5;    
   printf("%d",a);
*/

 

You give me 15 seconds I promise you best tutorials
Please share your happy experience on Google

courses

DataFlair Team

DataFlair Team provides high-impact content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. We make complex concepts easy to grasp, helping learners of all levels succeed in their tech careers.

Leave a Reply

Your email address will not be published. Required fields are marked *