## Swapping values of two variables with XOR

As programmers, we know that we can swap two variables by using a temporary variable. That’s fairly simple and intuitive: given two variables (x and y) that you...

Skip to content
# Category: Low level programming

## Swapping values of two variables with XOR

As programmers, we know that we can swap two variables by using a temporary variable. That’s fairly simple and intuitive: given two variables (x and y) that you...

## Here’s some assembly instructions … now write the corresponding C code

A wide grin formed on my face, after successfully completing an exercise (from Computer Systems a Programmer’s perspective) that required me to write C co...