Skip to content

Instantly share code, notes, and snippets.

@duyet
Created February 17, 2016 17:33
Show Gist options
  • Save duyet/1cc293065860a24955df to your computer and use it in GitHub Desktop.
Save duyet/1cc293065860a24955df to your computer and use it in GitHub Desktop.
void swap(int &b, int &b) {
int t = a; a = b; b = t;
}
int main() {
int x = 1, y = 2;
swap(x, y); // <=== Cái này là gọi hàm, học kiêu gì trời ơi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment