c 26 3d operator

Solutions on MaxInterview for c 26 3d operator by the best coders in the world

showing results for - "c 26 3d operator"
Jannik
05 Jun 2016
1// | is the binary "or" operator
2// a |= b is equivalent to a = a|b
3
4#include <stdio.h>
5
6int main() {
7   int a = 10;  // 00001010 in binary
8   int b = 6;   // 00000110 in binary
9
10   printf("Result : %d\n", a |= b);
11   // Result is 14 which is OOOO111O in binary
12
13   return 0;
14}
Philipp
31 Jul 2020
1// & is the binary "and" operator
2// a &= b is equivalent to a = a&b