Logic processing can utilize binary values, where 1 represents true and 0 represents false, allowing for arithmetic operations to be applied to logical operations. For instance, an "OR" operation can be executed using addition, while an "AND" operation can be performed through multiplication. The shunting yard algorithm is questioned for its ability to manage sequences of logical operations, with an emphasis on the necessity of setting operator precedence correctly. The discussion highlights that boolean and arithmetic operators can be treated similarly, as both can be processed in stack-based systems, a practice established for decades. In programming languages like C and C++, binary operators encompass arithmetic, relational, logical, and bitwise operations, all of which return results based on two input values. Additionally, C++ allows for the creation of custom operand types, enabling the redefinition of operator functions. However, the implementation of infix code in C++ is determined by the compiler, which may prioritize optimization over the use of the shunting yard algorithm.