bsc

Comprehensive codebase and coursework for the 4-year B.Sc. Computer Science Honours degree (WBSU)

git clone https://github.com/notamitgamer/bsc.git
· rebuilt hourlyOpen on GitHub
root / semester_1 / tuition-c / APC-SPS-005.c

APC-SPS-005.c (212B)


      1 /* Bitwise OR '|' */
      2 
      3 #include<stdio.h>
      4 int main() {
      5 	int x = 12, y = 14, z = 10, res;
      6 	x++;
      7 	z++;
      8 	x = x + y + z;
      9 	res = x | y;
     10 	z = res | z;
     11 	printf("x = %d y = %d z = %d res = %d", x, y, z, res);
     12 	return 0;
     13 }