/* bitshift.c */

#include <stdio.h>

int main() {
  int a = 5;
  int b = 50;
  int c = 40;
  printf("%d << 3 = %d, %d >> 2 = %d\n", a, a<<3, b, b>>2);
  printf("%d & %d = %d, %d | %d = %d, %d ^ %d = %d\n",
	 b,c, b & c, b,c, b | c, b,c, b ^ c);
}
/* Ausgabe:
   5 << 3 = 40, 50 >> 2 = 12
   50 & 40 = 32, 50 | 40 = 58, 50 ^ 40 = 26
*/
