Swap values in C without intermediate variable

Using the following properties of the XOR function: Associativity {% latex %} $(a \oplus b) \oplus c = a \oplus (b \oplus c) $ {% endlatex %} Commutativity {% latex %} $a \oplus b = b \oplus a $ {

Read Moreā€¦

All Posts by Category or Tags.