Skip to content

Instantly share code, notes, and snippets.

@masui

masui/swap()

Created Jan 29, 2014
Embed
What would you like to do?
一時変数を使わず変数の内容を交換する
#define swap(a,b) (a = a ^ b; b = a ^ b; a = a ^ b;)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.