Skip to content

Instantly share code, notes, and snippets.

View shellmonk's full-sized avatar
🥕

Srđan Đorđević shellmonk

🥕
View GitHub Profile
@shellmonk
shellmonk / swap.c
Created October 3, 2023 22:15
Swap values of two integer variables without introducing the third one - inline assembly abuse edition
/**
* PROBLEM:
* Swap values of two integer
* variables without introducing
* the third one
*
* $ gcc -o swap swap.c
* $ chmod +x swap
* $ ./swap
*