Bitwise operations on very large integers in C/C++

How can we compute bitwise operations (&, |, !, >>, <<) on two very large integers? Very large integers in the sense each number having many digits (eg 100 digits) and both numbers are stored in two different arrays. Kindly help me

Convert the number into it’s binary form and then perform. That is divide and mod by 2 will give you the binary just like how do it to normal integers. Form the new array and then deal with each bit induvidually.

Additionally if it’s only << and >> just divide or multiply by 2. That’ll work too.

//