bitwise operators in c
~ ==> bitwise NOT
& ==> bitwise AND
| ==> bitwise OR
^ ==> bitwise XOR
>> ==> bit shift right
<< ==> bit shift left
bitwise operators in c
~ ==> bitwise NOT
& ==> bitwise AND
| ==> bitwise OR
^ ==> bitwise XOR
>> ==> bit shift right
<< ==> bit shift left
C bitwise
#include <stdio.h>
int main(void) {
unsigned int a = 60; //Equal to: 0011 1100
unsigned int b = 13 // Equal to: 0000 1101
int both = a & b //If both are 0, then its a 0,
// if both are 1, then its a 1. //0000 1100
printf("%d\n", both);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us