Search
 
SCRIPT & CODE EXAMPLE
 

C

Bit wise Operation

int main() {
unsigned int a=240, b=170;
printf("a=%u, b=%u
", a, b);
printf("a&b=%u
", a & b);
printf("a|b=%u
", a | b);
printf("a^b=%u
", a ^ b);
printf("~a=%u
", ~a);
printf("a<<2=%u
", a << 2);
printf("a>>3=%u
", a >> 3);
return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: arma 3 nearest terrain objects 
C :: take array input from user and calc the avr in c 
C :: reverse number in c 
C :: wordpress clean name spaces 
C :: sort vectors c 
C :: Write a c program to add two numbers without using addition operator. 
C :: else if statement in c 
C :: function for 2d dynamic array 
C :: how to compare string in c 
C :: c while loop 
C :: in c check if triangle is a right triangle 
Dart :: round corner of alertdialog flutter 
Dart :: how can i move floating action button to center flutter 
Dart :: copy to clipboard flutter 
Dart :: add years to date dart 
Dart :: flutter flotingactionbutton color 
Dart :: flutter network image size 
Dart :: how to stop screen rotation in flutter 
Dart :: dart shuffle list 
Dart :: mark as deprecated dart 
Dart :: how to repeatedly call a function flutter 
Dart :: generate method o dart list 
Dart :: keyboard push view up flutter 
Dart :: flutter tooltip padding 
Dart :: text wrap in flutter 
Dart :: flutter safearea 
Dart :: flutter chip 
Dart :: dart store unique values 
Dart :: dart what is a closure 
Dart :: Flutter Dart - Difference Two DateTime 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =