Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Swap Two Variables Without A Temporary Variable (XOR Swap Algorithm) | C Programming Example

2.8K views on YouTube

Swap two variables without a temporary variable in C. This is known as the XOR Swap Algorithm: https://en.wikipedia.org/wiki/XOR_swap_algorithm. Source code: https://github.com/portfoliocourses/c-example-code/blob/main/xor_swap.c. Check out https://www.portfoliocourses.com to build a portfolio that will impress employers!