RosettaCodeData/Task/Bitwise-operations/Pop11/bitwise-operations.pop11
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

8 lines
296 B
Text

define bitwise(a, b);
printf(a && b, 'a and b = %p\n');
printf(a || b, 'a or b = %p\n');
printf(a ||/& b, 'a xor b = %p\n');
printf(~~ a, 'not a = %p\n');
printf(a << b, 'left shift of a by b = %p\n');
printf(a >> b, 'arithmetic right shift of a by b = %p\n');
enddefine;