Bitwise operations in BC?

otto picture otto · Jun 2, 2010 · Viewed 7.2k times · Source
$ bc
BC> ibase=2
BC> 110&101                     // wanna get 100
(standar_in) 8: syntax error

Wikipedia informs that the ops are "|, & and ^". It may be that they work only in certain BC-types or I misread something.

Answer

Michael Mrozek picture Michael Mrozek · Jun 2, 2010

Those operators are listed in the section 'Missing' operators relative to C, which ends with "... are not available in POSIX bc"