Skip to content

Instantly share code, notes, and snippets.

@copumpkin
Created April 12, 2009 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save copumpkin/93840 to your computer and use it in GitHub Desktop.
Save copumpkin/93840 to your computer and use it in GitHub Desktop.
#include <iostream>
void f(int &imachangeu) {
imachangeu = 7;
}
int main() {
int x = 5;
std::cout << x << std::endl;
f(x);
std::cout << x << std::endl;
}
@annidy
Copy link

annidy commented Jul 18, 2013

5
7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment